PDA

Voir la version compl鋈e : [無ibrary][Aide] Using UL_IMAGE with PALIB ?


cuicui666
15/09/2007, 03h18
Hello everyone,

I'm starting a new project on my DS using uLibrary AND palib.
In the bottom screen (using uLibrary), I loaded several images (with the type UL_IMAGE).

If I want to draw those images on the top screen, is there a way to reuse the data contained in an UL_IMAGE and display it with PALIB ?

Brunni
15/09/2007, 12h09
I'm sorry, but there's no "simple" way to do it. If you're an expert, you can always find some tricks to do it, but it's really not straightforward.
In fact a pointer to the actual image data can be obtained with ulLockImage (don't forget to unlock it then). It's a bitmap whose width is image->sysSizeX pixels (pixel size in bits is ul_pixelSizes[image->format]) and height is image->sizeY, and the pixel format depends from image->format.
You could do interesting things with this, like convert it to a tiled bitmap or something, but as you see it's not simple :(

cuicui666
16/09/2007, 02h21
Thank you for the answer, I'll see what I can do :)