Covert BitMap to ImageData for Bobs
I'm just trying to display a Bob using the GELs system.
RKRM Libraries page 637 contains a description of the image format needed to display a Bob properly. However I loaded the image already using datatypes. Now I've a pointer to the struct BitMap of the image data. I just don't know how to convert it. Is there any known way to convert the BitMap->Planes to the Bob format? |
Quote:
Code:
NEWOB myNewBob = { /* Data for the new ob structure defined in animtools.h */ bob_data2,NULL, /* Image,ColorSet */ 32,4,2,2, /* Width,Heigth,Depth,RasterDepth */ 160,100, /* x,y */ SAVEBACK | OVERLAY,ISBOB, /* Flags,ExtraFlags */ 3,0, /* PlanePick,PlaneOnOff */ 0,0 /* meMask,hitMask */ }; Code:
UWORD __chip bob_data2[2*2*GEL_SIZE]={ /*plane 1*/ 0xaaaa,0xaaaa,0xaaaa,0xaaaa,0xaaaa,0xaaaa,0xaaaa,0xaaaa, /*plane 2*/ 0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555 }; |
All times are GMT +2. The time now is 01:21. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.