This forum contains outdated content and is available for reading only. Please contact technical support if you have any questions.

Faster way to save Black layer?

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
P.S. It looks like the method ChannelsProvider.get__Channel (int channelIndex) is taking the most time.
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.
Thanks Tamila.