![]() |
How to display a PNG image as a static control? |
Post Reply
|
| Author | |
evoX
Senior Member
Joined: 25 July 2007 Status: Offline Points: 207 |
Post Options
Thanks(0)
Quote Reply
Topic: How to display a PNG image as a static control?Posted: 05 February 2008 at 10:41pm |
|
How can I display a transparent PNG image like a static control ? or in a derived static control? (in a static control would be better because I can position the image in dialog editor)
Is this possible with XtremeToolkitPro ?
Thanks !
|
|
![]() |
|
evoX
Senior Member
Joined: 25 July 2007 Status: Offline Points: 207 |
Post Options
Thanks(0)
Quote Reply
Posted: 06 February 2008 at 12:25am |
|
I want to display the PNG images as background layers, so there will be controls on top of them or other PNG images.
|
|
![]() |
|
jimmy
Senior Member
Joined: 11 November 2003 Location: Austria Status: Offline Points: 516 |
Post Options
Thanks(0)
Quote Reply
Posted: 06 February 2008 at 4:17am |
|
Hi,
Use CXTPGraphicBitmapPng to Load png. Than you have a HBITMAP, that you can draw. Jimmy |
|
![]() |
|
evoX
Senior Member
Joined: 25 July 2007 Status: Offline Points: 207 |
Post Options
Thanks(0)
Quote Reply
Posted: 06 February 2008 at 10:24am |
|
Thanks,
I currently have a custom static control which draws the PNG files with GDI+, but it's too slow when there are more images, I hope CXT will be faster.
|
|
![]() |
|
jimmy
Senior Member
Joined: 11 November 2003 Location: Austria Status: Offline Points: 516 |
Post Options
Thanks(0)
Quote Reply
Posted: 06 February 2008 at 11:11am |
|
It's so fast as draw bitmap, because after loading it will be convert to a bitmap.
Jimmy |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |