Using PNG / TIF format images in Button control and background
-
Hello All, I have images in .PNG format to be used in my Buttons in my dialogs and forms. When I tried to use the CBitmapButton it is expecting the images in .BMP format. When I tried to convert the image the color of image changes :doh:. TIF format gives almost similar look and feel when converted from PNG format.:rolleyes: Let me know how to use PNG / TIF images for my button. I have few images in PNG format to be used as background of my dialogs also. Let me know how to use PNG files as back ground of the dialog box. Thanks in Advance Blr Boy
-
Hello All, I have images in .PNG format to be used in my Buttons in my dialogs and forms. When I tried to use the CBitmapButton it is expecting the images in .BMP format. When I tried to convert the image the color of image changes :doh:. TIF format gives almost similar look and feel when converted from PNG format.:rolleyes: Let me know how to use PNG / TIF images for my button. I have few images in PNG format to be used as background of my dialogs also. Let me know how to use PNG files as back ground of the dialog box. Thanks in Advance Blr Boy
Maybe also that your image converting tool is poor, try IrfanView, it's great. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
-
Hello All, I have images in .PNG format to be used in my Buttons in my dialogs and forms. When I tried to use the CBitmapButton it is expecting the images in .BMP format. When I tried to convert the image the color of image changes :doh:. TIF format gives almost similar look and feel when converted from PNG format.:rolleyes: Let me know how to use PNG / TIF images for my button. I have few images in PNG format to be used as background of my dialogs also. Let me know how to use PNG files as back ground of the dialog box. Thanks in Advance Blr Boy
if you want to load ong or gif files you can use of
CImage
class.
WhiteSky