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

Notification

Icon
Error

Options
Go to last post Go to first unread
Alan8  
#1 Posted : Wednesday, May 27, 2009 5:08:22 AM(UTC)
Alan8

Rank: Member

Groups: Member
Joined: 7/25/2007(UTC)
Posts: 18

Thanks: 1 times
Hi,

I'm using Graphics Mill to save the Black channel of a CMYK bitmap:

Aurigma.GraphicsMill.Bitmap next = ...

...

Aurigma.GraphicsMill.ChannelsProvider cp = next.Channels;

cp [Aurigma.GraphicsMill.ColorChannel.Black].Save (fileName, Util.LzwEncoding);

It works, but it's taking a long time. Is there a faster way to do this?

Thanks,

Alan

Alan8  
#2 Posted : Wednesday, May 27, 2009 5:32:49 AM(UTC)
Alan8

Rank: Member

Groups: Member
Joined: 7/25/2007(UTC)
Posts: 18

Thanks: 1 times
P.S. It looks like the method ChannelsProvider.get__Channel (int channelIndex) is taking the most time.
Tamila  
#3 Posted : Wednesday, May 27, 2009 6:12:14 PM(UTC)
Tamila

Rank: Advanced Member

Groups: Member
Joined: 3/9/2008(UTC)
Posts: 554

Was thanked: 1 time(s) in 1 post(s)
Hello Alan,

You are right, this process takes a long time. Unfortunately, it cannot work faster because of peculiarity of realization. Graphics Mill creates a temp bitmap and copies value of black channel pixel by pixel to the temp bitmap. That is why it takes a long time.

By the way, if you need to copy several channels, you can do it using the same algorithm but each time you need to copy all necessary channels and save them in different temp files.

Aurigma Support Team

UserPostedImage Follow Aurigma on Twitter!

Alan8  
#4 Posted : Wednesday, May 27, 2009 11:30:59 PM(UTC)
Alan8

Rank: Member

Groups: Member
Joined: 7/25/2007(UTC)
Posts: 18

Thanks: 1 times
Thanks Tamila.
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.