Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
BarryP  
#1 Posted : Thursday, March 23, 2006 3:12:53 PM(UTC)
BarryP

Rank: Member

Groups: Member
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
Andrew  
#2 Posted : Thursday, March 23, 2006 10:30:19 PM(UTC)
Andrew

Rank: Advanced Member

Groups: Member, Administration
Joined: 8/2/2003(UTC)
Posts: 866

Thanks: 2 times
Was thanked: 26 time(s) in 26 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.
BarryP  
#3 Posted : Friday, March 24, 2006 7:56:39 AM(UTC)
BarryP

Rank: Member

Groups: Member
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?
Andrew  
#4 Posted : Friday, March 24, 2006 5:09:43 PM(UTC)
Andrew

Rank: Advanced Member

Groups: Member, Administration
Joined: 8/2/2003(UTC)
Posts: 866

Thanks: 2 times
Was thanked: 26 time(s) in 26 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.
BarryP  
#5 Posted : Friday, March 24, 2006 6:30:42 PM(UTC)
BarryP

Rank: Member

Groups: Member
Joined: 3/23/2006(UTC)
Posts: 17

GREAT!!!! It works!!!

Thanks a stack.
Andrew  
#6 Posted : Friday, March 24, 2006 11:07:05 PM(UTC)
Andrew

Rank: Advanced Member

Groups: Member, Administration
Joined: 8/2/2003(UTC)
Posts: 866

Thanks: 2 times
Was thanked: 26 time(s) in 26 post(s)
Please let me know if you have any other questions.
Users browsing this topic
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.