Returns pixel value at specified coordinates.
Namespace: Aurigma.GraphicsMill
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Syntax
| Visual Basic (Declaration) |
|---|
Public Function GetPixel ( _
x As Integer, _
y As Integer _
) As Color |
Parameters
- x
- Horizontal position of the pixel.
- y
- Vertical position of the pixel.
Return Value
Pixel value at the specified position. The actual type of the returned object depends on color space of the bitmap. E.g. if bitmap is in RGB color space, actual type will be
RgbColor, etc.
Remarks
Examples
| | Copy Code |
|---|
bitmap.SetPixel(120, 100, Aurigma.GraphicsMill.RgbColor.Red)
Dim color As Aurigma.GraphicsMill.RgbColor = bitmap.GetPixel(100, 80)
|
| | Copy Code |
|---|
bitmap.SetPixel(120, 100, Aurigma.GraphicsMill.RgbColor.Red);
Aurigma.GraphicsMill.RgbColor color =
(Aurigma.GraphicsMill.RgbColor)(bitmap.GetPixel(100, 80));
|
See Also