Class PixelExtractor
Namespace: Aurigma.DesignAtoms.ImageProcessing.Services
Assembly: Aurigma.DesignAtoms.ImageProcessing.dll
Syntax
public class PixelExtractor
Inheritance: System.Object -> PixelExtractor
Inherited Members
System.Object.ToStringSystem.Object.Equals(System.Object)System.Object.Equals(System.Object,System.Object)System.Object.ReferenceEquals(System.Object,System.Object)System.Object.GetHashCodeSystem.Object.GetTypeSystem.Object.MemberwiseClone
Constructors
PixelExtractor
public PixelExtractor()
Methods
ExtractPixels
public Dictionary<Color, int> ExtractPixels(Bitmap bitmap)
Parameters
| Type | Name | Description |
|---|---|---|
Aurigma.GraphicsMill.Bitmap | bitmap |
Returns
System.Collections.Generic.Dictionary<Aurigma.GraphicsMill.Color,System.Int32>
MapPixelsInPlace
public void MapPixelsInPlace(Bitmap bitmap, Func<Color, Color> colorMapper)
Parameters
| Type | Name | Description |
|---|---|---|
Aurigma.GraphicsMill.Bitmap | bitmap | |
System.Func<Aurigma.GraphicsMill.Color,Aurigma.GraphicsMill.Color> | colorMapper |
ForEachPixel
public void ForEachPixel(Bitmap bitmap, Action<int, int, Color> pixelAction)
Parameters
| Type | Name | Description |
|---|---|---|
Aurigma.GraphicsMill.Bitmap | bitmap | |
System.Action<System.Int32,System.Int32,Aurigma.GraphicsMill.Color> | pixelAction |
EnsureStandardFormat
public Bitmap EnsureStandardFormat(Bitmap bitmap)
Parameters
| Type | Name | Description |
|---|---|---|
Aurigma.GraphicsMill.Bitmap | bitmap |
Returns
Aurigma.GraphicsMill.Bitmap