Print Page | Close Window

Problem with PNG files

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=8134
Printed Date: 17 June 2025 at 8:31pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Problem with PNG files
Posted By: Pilikoff
Subject: Problem with PNG files
Date Posted: 24 September 2007 at 7:03am
Hi. Sorry for my bad English.
I'l try to customize Ribbon Sample by customizing standart Blue Style resource PNG files. When i'l re-save Office2007_FrameSystemButton.png (and some other) file using Adobe Photoshop without any changes in file, i'l have some problem. White stripes:

System Button




Resource:


_______


Resource:




Replies:
Posted By: Oleg
Date Posted: 25 September 2007 at 4:47am
Hello,
 
All alpha bitmaps are premultiplied by defaut to increase loading speed. If you don't use premultiplied bitmaps you can manually patch CXTPOffice2007Image::LoadFile method and add Premultiply() method call in the end of file.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Pilikoff
Date Posted: 25 September 2007 at 5:19am
If I want to use premultiplied images, what software I should use for correct transparency in Ribbon Sample?


Posted By: Pilikoff
Date Posted: 25 September 2007 at 6:44am
Thanks Oleg. Work's.
Adobe Photoshop hides alfa-chanal during re-saveing png file.
I'l save image in tiff-format with option "Saving transparency" and then covert it to png with Ms Office Paint Manager, that save's alfa-chanal. And...It's work too.


Posted By: Oleg
Date Posted: 26 September 2007 at 1:01am
Thanks for this tip :)

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: drimage
Date Posted: 05 May 2014 at 11:36pm
thank you for sharing this tip, it is a great idea to convert tiff to png and solve this prolbem. i don' t have Ms Office Paint Manager, can a third party http://www.rasteredge.com/how-to/csharp-imaging/tiff-convert-png/" rel="nofollow -



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