ImageGear21.Core Assembly > ImageGear.Processing Namespace > ImGearRasterProcessing Class > Merge Method : Merge(ImGearRasterPage,ImGearRasterPage,Int32,Int32,ImGearMergeModes,ImGearChannelRange) Method |
'Declaration Public Overloads Shared Sub Merge( _ ByVal page As ImGearRasterPage, _ ByVal pageToMergeWith As ImGearRasterPage, _ ByVal left As Integer, _ ByVal top As Integer, _ ByVal mode As ImGearMergeModes, _ ByVal channels As ImGearChannelRange _ )
'Usage Dim page As ImGearRasterPage Dim pageToMergeWith As ImGearRasterPage Dim left As Integer Dim top As Integer Dim mode As ImGearMergeModes Dim channels As ImGearChannelRange ImGearRasterProcessing.Merge(page, pageToMergeWith, left, top, mode, channels)
public static void Merge( ImGearRasterPage page, ImGearRasterPage pageToMergeWith, int left, int top, ImGearMergeModes mode, ImGearChannelRange channels )
public: static void Merge( ImGearRasterPage* page, ImGearRasterPage* pageToMergeWith, int left, int top, ImGearMergeModes mode, ImGearChannelRange channels )
public: static void Merge( ImGearRasterPage^ page, ImGearRasterPage^ pageToMergeWith, int left, int top, ImGearMergeModes mode, ImGearChannelRange channels )
Both page DIBs must have the same color space.
Use ImGearRasterProcessingVerifier.CanApplyMerge method to check whether the operation can be performed.
If the images are paletted, the arithmetic operation is applied to the pixel values (indexes) rather than to the palette entries. This may result in unexpected effect with certain palettes, for example if the palette is reversed. In such cases, consider converting the image to a non-indexed colorspace, such as Grayscale or RGB, before applying the operation.