Rank: Member
Groups: Joined: 3/23/2006(UTC) Posts: 17
|
I load to images within the viewer:
1 jpg 1 gif - transparent
I need to be able to work with the gif image:
Change RGB Change Brightness & Contrast
This does not seem possible or am I missing the plot?
Thanks for your help.
Regards, Barry
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration Joined: 8/2/2003(UTC) Posts: 876
Thanks: 2 times Was thanked: 27 time(s) in 27 post(s)
|
GIF files are always stores in 8-bit indexed pixel format. That's why you cannot apply these effects until you convert it to 24-bit RGB format.
So to resolve this problem, you should call:
objBitmap.Data.ConvertTo24bppRgb
before you try to apply any channel-based transforms.
|
|
|
|
Rank: Member
Groups: Joined: 3/23/2006(UTC) Posts: 17
|
Doing that does not work. The image is not transparent any more. The image below it then becomes hidden and I o not want this to be so.
Anything else I can do?
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration Joined: 8/2/2003(UTC) Posts: 876
Thanks: 2 times Was thanked: 27 time(s) in 27 post(s)
|
Sorry, I did not notice that you need to maintain transparency.
If you need to keep the transparency, you should convert to 32-bit ARGB (i.e. pixel format with alpha channel). So you should use the ConvertTo32bppArgb method instead of ConvertTo24bppRgb.
|
|
|
|
Rank: Member
Groups: Joined: 3/23/2006(UTC) Posts: 17
|
GREAT!!!! It works!!!
Thanks a stack.
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration Joined: 8/2/2003(UTC) Posts: 876
Thanks: 2 times Was thanked: 27 time(s) in 27 post(s)
|
Please let me know if you have any other questions.
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.