Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Gallery & Transparency
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Gallery & Transparency

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


Joined: 21 March 2008
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote olegdudko Quote  Post ReplyReply Direct Link To This Post Topic: Gallery & Transparency
    Posted: 21 March 2008 at 5:01pm
Hi,
 
If I add image with transparency into Gallery
there is strange blue color for half transparent pixels.
 
Are there special requirements for using images with transparency in Gallery?
 
Thanks,
Oleg
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: 22 March 2008 at 2:46am
Hi,
Attach image you use, Attach code you use to set this image.
Think problem in image. Does it have alpha layer ?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
San0k View Drop Down
Groupie
Groupie


Joined: 06 February 2008
Location: Ukraine
Status: Offline
Points: 48
Post Options Post Options   Thanks (0) Thanks(0)   Quote San0k Quote  Post ReplyReply Direct Link To This Post Posted: 24 March 2008 at 7:05am
I have attach test project and picture demonstrates transparency bug.
At the picture different colors, but I think than colors must be same.



20080324_064607_TransparencyBug.zip
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: 24 March 2008 at 8:13am
Hi,
 
Problem in GetHbitmap.ToInt32() line - it removes alpha layer.
 
 
If you really need draw it in runtime you can save in temporary file and load from code:
 

bmp.Save("c:\\file.png");

gallery.Items.Icons.LoadBitmap("c:\\file.png", 0, XTPImageState.xtpImageNormal);

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
San0k View Drop Down
Groupie
Groupie


Joined: 06 February 2008
Location: Ukraine
Status: Offline
Points: 48
Post Options Post Options   Thanks (0) Thanks(0)   Quote San0k Quote  Post ReplyReply Direct Link To This Post Posted: 24 March 2008 at 11:11am
Do you know method without saving image on the disk?
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.171 seconds.