ImageGear22.Core Assembly > ImageGear.Processing Namespace > ImGearRasterProcessing Class > ChangeChannelDepths Method : ChangeChannelDepths(ImGearRasterPage,Int32[],Boolean) Method |
'Declaration Public Overloads Shared Sub ChangeChannelDepths( _ ByVal page As ImGearRasterPage, _ ByVal newChannelDepths() As Integer, _ ByVal doNotScalePixels As Boolean _ )
'Usage Dim page As ImGearRasterPage Dim newChannelDepths() As Integer Dim doNotScalePixels As Boolean ImGearRasterProcessing.ChangeChannelDepths(page, newChannelDepths, doNotScalePixels)
public static void ChangeChannelDepths( ImGearRasterPage page, int[] newChannelDepths, bool doNotScalePixels )
public: static void ChangeChannelDepths( ImGearRasterPage* page, int[]* newChannelDepths, bool doNotScalePixels )
public: static void ChangeChannelDepths( ImGearRasterPage^ page, array<int>^ newChannelDepths, bool doNotScalePixels )
If dontScalePixels
is false (default), pixel values are scaled according to new channel depth. Unused gaps should be filled with 0 when channel is reduced.
If dontScalePixels
is true, channel depth is changed, but pixel values are not scaled. If the channel depth is increased, the pixel data is not changed. If the channel depth is decreased, the pixel value is not changed in the case when it can be accommodated within the new depth. Otherwise, it is set to the maximum value allowed by the new depth (0x0...01...1).