Page 1 of 1

Posted: Tue Jan 15, 2002 3:00 pm
by BackupUser
Restored from previous forum. Originally posted by FAKEFACTORY.

Hi,

i wonder is there a way to get the bitmap handle of JPEG-sprites? i need the handle for manipulating the bitmaps with API32 functions...



Registered PureBasic Coder

Posted: Tue Jan 15, 2002 4:08 pm
by BackupUser
Restored from previous forum. Originally posted by fred.

Sprite aren't standard bitmap, so you can't use Win32 fonctions on them. It's a DirectDrawSurface7 Object.

Fred - AlphaSND

Posted: Tue Jan 15, 2002 4:23 pm
by BackupUser
Restored from previous forum. Originally posted by michaelj.

Assuming you know the size, could you not create a new bitmap in memory, and memcopy the contents across ??

Probably a stupid idea, but it just might work ;o)

Michael.
(Registered PureBasic user)

Posted: Tue Jan 15, 2002 5:02 pm
by BackupUser
Restored from previous forum. Originally posted by fred.

Nop, as the DirectX sprite has some alinement issues which aren't suitable for bitmaps :).

Fred - AlphaSND