Print Page | Close Window

How to display a PNG image as a static control?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=9504
Printed Date: 24 April 2025 at 3:36am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to display a PNG image as a static control?
Posted By: evoX
Subject: How to display a PNG image as a static control?
Date 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 !



Replies:
Posted By: evoX
Date 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.


Posted By: jimmy
Date Posted: 06 February 2008 at 4:17am
Hi,

Use CXTPGraphicBitmapPng to Load png.
Than you have a HBITMAP, that you can draw.

   Jimmy



Posted By: evoX
Date 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.
 


Posted By: jimmy
Date 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




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net