Class PixelFormatConverter
Namespace: Aurigma.DesignAtoms.GmConverters
Assembly: Aurigma.DesignAtoms.dll
Syntax
public static class PixelFormatConverter
Inheritance: System.Object -> PixelFormatConverter
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
Methods
ToGm
public static PixelFormat ToGm(this PixelFormat source)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Color.PixelFormat | source |
Returns
Aurigma.GraphicsMill.PixelFormat
ToModel
public static PixelFormat ToModel(this PixelFormat source)
Parameters
| Type | Name | Description |
|---|---|---|
Aurigma.GraphicsMill.PixelFormat | source |
Returns
Aurigma.DesignAtoms.Model.Color.PixelFormat
GetColorSpace
public static ColorSpace GetColorSpace(this PixelFormat pixelFormat)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Color.PixelFormat | pixelFormat |
Returns
Aurigma.DesignAtoms.Model.Color.ColorSpace
IsRgb
public static bool IsRgb(this PixelFormat pixelFormat)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Color.PixelFormat | pixelFormat |
Returns
System.Boolean
IsCmyk
public static bool IsCmyk(this PixelFormat pixelFormat)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Color.PixelFormat | pixelFormat |
Returns
System.Boolean
IsGrayscale
public static bool IsGrayscale(this PixelFormat pixelFormat)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Color.PixelFormat | pixelFormat |
Returns
System.Boolean
IsIndexed
public static bool IsIndexed(this PixelFormat pixelFormat)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Color.PixelFormat | pixelFormat |
Returns
System.Boolean
HasAlpha
public static bool HasAlpha(this PixelFormat pixelFormat)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Color.PixelFormat | pixelFormat |
Returns
System.Boolean
AddAlpha
public static PixelFormat AddAlpha(this PixelFormat pixelFormat)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Color.PixelFormat | pixelFormat |
Returns
Aurigma.DesignAtoms.Model.Color.PixelFormat
DiscardAlpha
public static PixelFormat DiscardAlpha(this PixelFormat pixelFormat)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Color.PixelFormat | pixelFormat |