Constructors
Properties
HasAlphaChannel
#Gets a value indicating whether or not the local image has an alpha channel defined.
Methods
A
#Gets the alpha channel value at the given pixel coordinates.
B
#Gets the blue channel value at the given pixel coordinates.
Colour
#Gets the colour at the given pixel coordinates.
Colour
#Sets the colour at the given pixel coordinates.
CopyChannel
#Copy the contents of one channel into another.
Parameters:
| source (GH_BitmapChannel) | Source channel (compound channels are not allowed). |
| target (GH_BitmapChannel) | Target channel (compound channels are not allowed). |
Filter_AlphaEdges
#Set the alpha component on all edges to a specific value.
Filter_Blur
#Blur the image in both directions.
Filter_Blur
#Blur the image N times in both directions.
Filter_Blur
#Blur the image N times in both directions.
Parameters:
| N (int) | Number of times to perform the blurring operation. |
Filter_BlurAlpha
#Blur the alpha channel of the image N times in both directions.
Filter_Contrast
#Adjust the contrast of a specific channel.
Parameters:
| channel (GH_BitmapChannel) | Channel(s) to modify. |
| factor (double) | Contrast boost factor. A factor of 1.0 will not affect contrast. Lower values will lessen contrast and higher values will increase contrast. |
Filter_DitherPattern
#public void Filter_DitherPattern(Color colour)
Create a checkerboard dither pattern.
Parameters:
| colour (Color) | Colour value to set at dithered pixels. |
Filter_DropShadow
#Add a drop-shadow to the image. Image is not grown, so if you want the drop shadow to extend beyond the image boundaries, you have to add padding to the image first.
Filter_Dullify
#public void Filter_Dullify()
Reduces contrast based on opacity. This filter pulls all colours towards dull grey, without wrecking drop-shadows.
Filter_Equalize
#Set all the values in a specific channel to a specific value.
Parameters:
| channel (GH_BitmapChannel) | Channel(s) to equalize. |
| value (byte) | Value to equalize with. |
Filter_GreyScale
#public void Filter_GreyScale()
Convert the image to a greyscale shadow of its former self.
Filter_GreyScale
#Convert the image to a greyscale shadow of its former self.
Parameters:
| amount (double) | Greyscale factor. 1.0 equals complete greyscale, 0.0 equals no greyscale, -1.0 equals inverse greyscale |
Filter_HueScale
#public void Filter_HueScale()
Convert the image to a greyscale representation of the hues.
Filter_Invert
#Invert all values in a specific channel.
Parameters:
| channel (GH_BitmapChannel) | Channel(s) to invert. |
Filter_LumScale
#public void Filter_LumScale()
Convert the image to a greyscale representation of the luminance.
Filter_Multiply
#Multiply all values in a specific channel with a specific factor, using a custom scaling center anchor.
Parameters:
| channel (GH_BitmapChannel) | Channel(s) to multiply. |
| factor (double) | Multiplication factor. |
| anchor (byte) | Byte value to scale from. |
Filter_Multiply
#Multiply all values in a specific channel with a specific factor.
Parameters:
| channel (GH_BitmapChannel) | Channel(s) to multiply. |
| factor (double) | Multiplication factor. |
Filter_SatScale
#public void Filter_SatScale()
Convert the image to a greyscale representation of the saturation.
Filter_Shift
#Shift all values in a specific channel with a specific amount.
Parameters:
| channel (GH_BitmapChannel) | Channel(s) to shift. |
| amount (byte) | Shift amount. |
Filter_SpectrumScale
#public void Filter_SpectrumScale()
Convert the image to a spectral representation of the hues.
Filter_Tint
#Colorize the image using Hue and Saturation from a base colour.
G
#Gets the greeb channel value at the given pixel coordinates.
OpaqueArea
#public Rectangle OpaqueArea()
Find the opaque area of a bitmap. The opaque area is the rectangle that contains pixels with a colour that is not fully transparent.
Returns: Area of bitmap containing all non-transparent pixels.
PadBitmap
#Add padding edges around a bitmap.
R
#Gets the red channel value at the given pixel coordinates.
Release
#Release the locked bits. You must call this function when you are done with this GH_MemoryBitmap instance.
Parameters:
| includeChanges (bool) | If true, changes to the bitmap memory block will be written back into the bitmap. |
Sample
#Top level sampling function for interpolated sampling.
Sample
#Top level sampling function.