# BitmapExtensionMethods class

Namespace: [Grasshopper2.Extensions](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.extensions.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public static class BitmapExtensionMethods
```

Extension methods for Eto.Drawing.Bitmap

## Methods

- [AddHsla](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.bitmapextensionmethods/addhsla.md): (static) Add a constant to all values in HSL channels.
- [AddRgba](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.bitmapextensionmethods/addrgba.md): (static) Add a constant to all channel values.
- [ApplyFilterDelegate](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.bitmapextensionmethods/applyfilterdelegate.md): (static) Apply a custom filter delegate to a bitmap.
- [Blur](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.bitmapextensionmethods/blur.md): (2 overloads, static) Blur an image.
- [ClearCheckerBoard](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.bitmapextensionmethods/clearcheckerboard.md): (2 overloads, static) Clear the entire image using a checkerboard pattern.
- [ClearRectangle](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.bitmapextensionmethods/clearrectangle.md): (static) Set all pixels within a rectangle to a specific colour.
- [CreateBlurProfile](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.bitmapextensionmethods/createblurprofile.md): (static) Create a blurring profile curve using a gaussian falloff.
- [CreatePalette](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.bitmapextensionmethods/createpalette.md): (2 overloads, static) Create a custom sized palette containing the most relevant colours in a bitmap.
- [Dither](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.bitmapextensionmethods/dither.md): (2 overloads, static) Dither an image using a palette.
- [DrawArcGradient](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.bitmapextensionmethods/drawarcgradient.md): (static) Draw an arc gradient into a rectangle.
- [DrawCircularGradient](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.bitmapextensionmethods/drawcirculargradient.md): (static) Draw a circular gradient into a rectangle.
- [DrawExpressionGradient](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.bitmapextensionmethods/drawexpressiongradient.md): (static) Draw an expression evaluated gradient into a rectangle.
- [DrawLinearGradient](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.bitmapextensionmethods/drawlineargradient.md): (static) Draw a linear gradient into a rectangle.
- [DrawRadialGradient](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.bitmapextensionmethods/drawradialgradient.md): (static) Draw a radial gradient into a rectangle.
- [DrawRectangleGradient](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.bitmapextensionmethods/drawrectanglegradient.md): (static) Draw a rectangle gradient into a rectangle.
- [DrawSimplexNoiseGradient](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.bitmapextensionmethods/drawsimplexnoisegradient.md): (static) Draw an expression evaluated gradient into a rectangle.
- [DropShadow](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.bitmapextensionmethods/dropshadow.md): (static) Create a fading and blurring drop shadow directly downwards.
- [DuplicateEdgePixels](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.bitmapextensionmethods/duplicateedgepixels.md): (static) Duplicate all pixels on the edges rectangle outwards.
- [Enlarge](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.bitmapextensionmethods/enlarge.md): (static) Enlarge a bitmap with integral factors.
- [FadeEdges](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.bitmapextensionmethods/fadeedges.md): (static) Linearly increase the transparency of the edges of the image.
- [FadeTransparent](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.bitmapextensionmethods/fadetransparent.md): (static) Multiply all the alpha values with a specific constant.
- [FillShape](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.bitmapextensionmethods/fillshape.md): (2 overloads, static) Fill the inside of a closed shape with a specific colour.
- [FrameEdges](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.bitmapextensionmethods/frameedges.md): (static) Replace all pixels around the edges of the bitmap with the nearest colour on the interior.
- [FromColorArray](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.bitmapextensionmethods/fromcolorarray.md): (2 overloads, static) Copy the contents of a colour buffer back into a bitmap.
- [LoadImageFromColourAndAlphaFiles](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.bitmapextensionmethods/loadimagefromcolourandalphafiles.md): (static) Load an image from a colour file and an alpha file.
- [MakeGreyScale](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.bitmapextensionmethods/makegreyscale.md): (2 overloads, static) Turn a bitmap into a greyscale represention of itself.
- [MakeTransparent](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.bitmapextensionmethods/maketransparent.md): (static) Set all the alpha values to a specific constant.
- [MultiplyHsla](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.bitmapextensionmethods/multiplyhsla.md): (static) Multiply all values in a specific channel by a factor.
- [MultiplyRgba](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.bitmapextensionmethods/multiplyrgba.md): (static) Multiply all values in a specific channel by a factor.
- [Overlay](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.bitmapextensionmethods/overlay.md): (static) Overlay an image on top of this image.
- [PadEdges](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.bitmapextensionmethods/padedges.md): (4 overloads, static) Pad all edges of a bitmap by a specific count.
- [PaletteDeviation](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.bitmapextensionmethods/palettedeviation.md): (2 overloads, static) Map the distances from each pixel to an existing palette.
- [Place](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.bitmapextensionmethods/place.md): (static) Place another bitmap into this bitmap.
- [PrintScreenArea](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.bitmapextensionmethods/printscreenarea.md): (static) Gets a custom sized portion of the screen underneath the cursor. The cursor location is in the middle.
- [Save](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.bitmapextensionmethods/save.md): (static) Bitmap save process which automatically picks the correct file format.
- [SaveImageToColourAndAlphaFiles](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.bitmapextensionmethods/saveimagetocolourandalphafiles.md): (static) Save a bitmap as a separate colour file and a separate alpha channel file. This is basically used to create jpeg sized images with alpha channels.
- [ShowCaseChannel](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.bitmapextensionmethods/showcasechannel.md): (2 overloads, static) Highlight a specific channel. This is primarily a UI filter, showing the user the salient properties of a specific channel.
- [StackHorizontal](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.bitmapextensionmethods/stackhorizontal.md): (static) Stack a bunch of bitmaps horizontally.
- [StackVertical](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.bitmapextensionmethods/stackvertical.md): (static) Stack a bunch of bitmaps vertically.
- [Streak](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.bitmapextensionmethods/streak.md): (static) Streak an image.
- [ToColorArray](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.bitmapextensionmethods/tocolorarray.md): (static) Convert a bitmap into a jagged colour array.
- [ToColorSet](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.bitmapextensionmethods/tocolorset.md): (2 overloads, static) Create a sampling set of all the colours in a bitmap.
- [ToCursor](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.bitmapextensionmethods/tocursor.md): (static) Convert a bitmap to a cursor.
- [Trim](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.bitmapextensionmethods/trim.md): (static) Cut out a portion of a bitmap.
- [TrimEdges](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.bitmapextensionmethods/trimedges.md): (static) Create a new bitmap which trims all edges if they consist of a solid colour.
