我试图创建一个宏,它将单元格的值转换为BMP文件。 代码是基于现有的话题,在这里找到: VBA manually create BMP 代码: Type typHEADER
strType As String * 2 ' Signature of file = "BM"
lngSize As Long ' File size
intRes1 As Integer
突然之间,我创建了一个非常快速的功能,取代了内存缓冲的bmp图像中的特定颜色的横冲直撞。我正在用40x40的图像进行测试,因此它是无镶边的。 这里是我到目前为止有: union
{
unsigned long ulColor;
unsigned char byteColor[4];
} oldColor;
union
{
unsigned long ulCol