Supplying a friend bitmap or display ID is indeed the only way to force the bitmap to be allocated in VRAM.
I pass Screen->RastPort.BitMap as friend to AllocBitMap().
BMF_DISPLAYABLE to specify that this bitmap data should be allocated in such a manner that it can be displayed.
In fact this ...
Search found 6 matches
- Thu Jan 17, 2013 9:41 pm
- Forum: General Developer Support
- Topic: Loading 32-bit PNG with datatypes
- Replies: 22
- Views: 22470
- Wed Jan 16, 2013 9:14 pm
- Forum: General Developer Support
- Topic: Loading 32-bit PNG with datatypes
- Replies: 22
- Views: 22470
Re: Loading 32-bit PNG with datatypes
PDTM_READPIXELARRAY did the trick. I allocate temporary buffer of size witdh * height * 4. Then I do READPIXELARRAY into it, requesting ARGB format. Then I allocate a bitmap (being screen's bitmap friend) of the same size, depth 32 and blit data to it using BltBitMapTags(). Then I destroy both ...
- Sat Jan 12, 2013 4:58 pm
- Forum: General Developer Support
- Topic: Loading 32-bit PNG with datatypes
- Replies: 22
- Views: 22470
Re: Loading 32-bit PNG with datatypes
Are you supplying BLITA_UseSrcAlpha, TRUE to your BltBitMapTags call?
Of course I do. I have read the autodoc of it carefully.
BltBitMapTags(
BLITA_Source, ggfx->Bricks,
BLITA_SrcType, BLITT_BITMAP,
BLITA_SrcX, src_x,
BLITA_SrcY, src_y,
BLITA_Dest, win->RPort,
BLITA_DestType, BLITT ...
Of course I do. I have read the autodoc of it carefully.
BltBitMapTags(
BLITA_Source, ggfx->Bricks,
BLITA_SrcType, BLITT_BITMAP,
BLITA_SrcX, src_x,
BLITA_SrcY, src_y,
BLITA_Dest, win->RPort,
BLITA_DestType, BLITT ...
- Fri Jan 11, 2013 10:02 pm
- Forum: General Developer Support
- Topic: Loading 32-bit PNG with datatypes
- Replies: 22
- Views: 22470
Re: Loading 32-bit PNG with datatypes
Hum, my Os3.x code was really quite the same as the code I showed you,
And it worked with OCS/ECS/AGA? I support them too, just in this case the graphics is 4-color IFF ILBM, of course without any alpha.
Unfortunatelly, I can hardly turn on my 4000T. Are you sure also your PNG datatype support ...
And it worked with OCS/ECS/AGA? I support them too, just in this case the graphics is 4-color IFF ILBM, of course without any alpha.
Unfortunatelly, I can hardly turn on my 4000T. Are you sure also your PNG datatype support ...
- Fri Jan 11, 2013 9:22 pm
- Forum: General Developer Support
- Topic: Loading 32-bit PNG with datatypes
- Replies: 22
- Views: 22470
Re: Loading 32-bit PNG with datatypes
I see both of you use PDTM_READPIXELARRAY method. As my code is based on AmigaOS 3.x one, it works differently. After setting PDTA_Mode to v43 (which is the default anyway, as stated it the autodoc), I perform DTM_PROCLAYOUT and then query PDTA_DestBitmap. Finally I allocate my buffer bitmap with ...
- Fri Jan 11, 2013 2:36 pm
- Forum: General Developer Support
- Topic: Loading 32-bit PNG with datatypes
- Replies: 22
- Views: 22470
Loading 32-bit PNG with datatypes
I want to load a PNG image with its alpha channel and then blit fragments of this image into window RastPort using BltBitMapTags(). So far I'm unsuccesfull, images are blitted, but without alpha. The first problem is that PDTA_Depth returns me 24 (instead of 32). Do I need some special tag for ...