Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Problem with PNG files
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problem with PNG files

 Post Reply Post Reply
Author
Message
Pilikoff View Drop Down
Newbie
Newbie


Joined: 24 September 2007
Location: Russian Federation
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote Pilikoff Quote  Post ReplyReply Direct Link To This Post Topic: Problem with PNG files
    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:

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Pilikoff View Drop Down
Newbie
Newbie


Joined: 24 September 2007
Location: Russian Federation
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote Pilikoff Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
Pilikoff View Drop Down
Newbie
Newbie


Joined: 24 September 2007
Location: Russian Federation
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote Pilikoff Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 26 September 2007 at 1:01am
Thanks for this tip :)
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
drimage View Drop Down
Newbie
Newbie


Joined: 05 June 2013
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote drimage Quote  Post ReplyReply Direct Link To This Post 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 tiff to png converter ok?
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.250 seconds.