SUB Graphics ALIAS "Graphics" EXPORT
DIM BMPHandle AS DWORD
GRAPHIC BITMAP LOAD CADRG_Path & "\Composite.bmp",1280,1280 TO BMPHandle
GRAPHIC ATTACH BMPHandle,0
GRAPHIC WIDTH 8
GRAPHIC ELLIPSE (300,300)-(900,900),%BLUE,,6
GRAPHIC SAVE CADRG_Path & "\Composite.bmp"
GRAPHIC BITMAP END
END SUB
The image Composite.bmp is a North-Up topographic map image which is to be rotated to another heading up by an existing routine. This rotational routine demands that the image Composite.bmp be a 256 color picture. When I use the powerful GRAPHIC commands from PowerBasic 8.0 to superimpose other data over the topographic image prior to rotation, the GRAPHIC BITMAP END statement saves the result in 24 Bit color, which the rotational routine cannot handle. I would hate to write a routine to convert the 24 bit color picture back to the original LUT.
Is there another means to save the composite picture with the original 256 color LUT intact?
DIM BMPHandle AS DWORD
GRAPHIC BITMAP LOAD CADRG_Path & "\Composite.bmp",1280,1280 TO BMPHandle
GRAPHIC ATTACH BMPHandle,0
GRAPHIC WIDTH 8
GRAPHIC ELLIPSE (300,300)-(900,900),%BLUE,,6
GRAPHIC SAVE CADRG_Path & "\Composite.bmp"
GRAPHIC BITMAP END
END SUB
The image Composite.bmp is a North-Up topographic map image which is to be rotated to another heading up by an existing routine. This rotational routine demands that the image Composite.bmp be a 256 color picture. When I use the powerful GRAPHIC commands from PowerBasic 8.0 to superimpose other data over the topographic image prior to rotation, the GRAPHIC BITMAP END statement saves the result in 24 Bit color, which the rotational routine cannot handle. I would hate to write a routine to convert the 24 bit color picture back to the original LUT.
Is there another means to save the composite picture with the original 256 color LUT intact?
Comment