Get Bitmapadress of JPEG-Sprites

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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
Post Reply