[]
        
(Showing Draft Content)

C1.Win.Util.ImageRecolorer

ImageRecolorer Class

Provides a method for replacing colors in the source image with the specified new colors in the destination image.

Inheritance
ImageRecolorer
Namespace: C1.Win.Util
Assembly: C1.Win.8.dll
Syntax
public class ImageRecolorer

Constructors

Name Description
ImageRecolorer()

Initializes a new instance of an ImageRecolorer.

ImageRecolorer(Color, Color, Color, Color)

Initializes a new instance of an ImageRecolorer.

ImageRecolorer(int, int, int, int)

Initializes a new instance of an ImageRecolorer.

Properties

Name Description
ChannelBlack

Gets or sets the color to replace Black in the source image.

ChannelBlue

Gets or sets the color to replace Blue in the source image.

ChannelMagenta

Gets or sets the color to replace Magenta in the source image.

ChannelWhite

Gets or sets the color to replace White in the source image.

IgnoreColor

Gets or sets the color to ignore on replacing.

IgnoreColorTolerance

Gets or sets a value that controls the range of colors to ignore when replacing.

Methods

Name Description
BlendOverBackground(Bitmap, Color, Color)

Blends only the pixels matching the given targetColor against a specified background color, preserving all other pixels.

MapPixels(Bitmap, Bitmap, int, int)

Copies the source image to the destination image with replacing colors.