Announcement

Collapse
No announcement yet.

8 Bit Color

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 8 Bit Color

    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?

  • #2
    I wish. It is hard to find something to save in true 2-bit/4-bit/8-bit color. I thought my Fireworks could do it but had to resort to Irfan to convert it when needed for the noguiboot mode static boot image in XP+ that wants exactly 16 colors.
    sigpic
    Mobile Solutions
    Sys Analyst and Development

    Comment

    Working...
    X