# Sandbox.Bitmap

- Kind: class
- Namespace: `Sandbox`
- Assembly: `Sandbox.Engine`
- Modifiers: sealed

## Constructors

- [`Bitmap`](/api/Sandbox.Bitmap/.ctor)

## Properties

- [`ByteCount`](/api/Sandbox.Bitmap/ByteCount)
- [`BytesPerPixel`](/api/Sandbox.Bitmap/BytesPerPixel)
- [`Center`](/api/Sandbox.Bitmap/Center)
- [`Height`](/api/Sandbox.Bitmap/Height)
- [`IsFloatingPoint`](/api/Sandbox.Bitmap/IsFloatingPoint): Whether the backing pixels use half-float RGBA storage.
- [`IsValid`](/api/Sandbox.Bitmap/IsValid)
- [`Rect`](/api/Sandbox.Bitmap/Rect)
- [`Size`](/api/Sandbox.Bitmap/Size): The width and height of the bitmap
- [`Width`](/api/Sandbox.Bitmap/Width)

## Methods

- [`Adjust`](/api/Sandbox.Bitmap/Adjust): Adjusts brightness, contrast, and saturation in one pass.
- [`AdjustHue`](/api/Sandbox.Bitmap/AdjustHue): Adjusts the hue of the bitmap.
- [`Blur`](/api/Sandbox.Bitmap/Blur): Applies a Gaussian blur effect to the current bitmap.
- [`Clear`](/api/Sandbox.Bitmap/Clear): Clears the bitmap to the specified color.
- [`Clone`](/api/Sandbox.Bitmap/Clone): Copy the bitmap to a new one without any changes.
- [`Colorize`](/api/Sandbox.Bitmap/Colorize): Color the bitmap using this color, respect alpha
- [`CreateFromBytes`](/api/Sandbox.Bitmap/CreateFromBytes): Loads a bitmap from the specified byte array.
- [`CreateFromIesBytes`](/api/Sandbox.Bitmap/CreateFromIesBytes)
- [`CreateFromPsdBytes`](/api/Sandbox.Bitmap/CreateFromPsdBytes): Creates a Bitmap instance from PSD file data.
- [`CreateFromSvgString`](/api/Sandbox.Bitmap/CreateFromSvgString)
- [`CreateFromTgaBytes`](/api/Sandbox.Bitmap/CreateFromTgaBytes)
- [`CreateFromTifBytes`](/api/Sandbox.Bitmap/CreateFromTifBytes)
- [`Crop`](/api/Sandbox.Bitmap/Crop): Crops the bitmap to the specified rectangle.
- [`Dispose`](/api/Sandbox.Bitmap/Dispose)
- [`DrawArc`](/api/Sandbox.Bitmap/DrawArc): Draws an arc using the current pen settings.
- [`DrawBitmap`](/api/Sandbox.Bitmap/DrawBitmap): Draws another bitmap onto this bitmap.
- [`DrawCircle`](/api/Sandbox.Bitmap/DrawCircle): Draws a circle using the current pen settings.
- [`DrawLine`](/api/Sandbox.Bitmap/DrawLine): Draws a line using the current pen settings.
- [`DrawLines`](/api/Sandbox.Bitmap/DrawLines): Draws connected lines through a series of points using the current pen settings.
- [`DrawPolygon`](/api/Sandbox.Bitmap/DrawPolygon): Draws a polygon using the current pen settings.
- [`DrawRect`](/api/Sandbox.Bitmap/DrawRect): Draws a rectangle using the current pen settings.
- [`DrawRoundRect`](/api/Sandbox.Bitmap/DrawRoundRect): Draws a rectangle using the current pen settings.
- [`DrawText`](/api/Sandbox.Bitmap/DrawText): Draws text onto this bitmap. The text is rendered on the GPU and read back.
- [`FlipHorizontal`](/api/Sandbox.Bitmap/FlipHorizontal): Flips the bitmap horizontally.
- [`FlipVertical`](/api/Sandbox.Bitmap/FlipVertical): Flips the bitmap vertically.
- [`GetPixel`](/api/Sandbox.Bitmap/GetPixel): Retrieves the color of a specific pixel in the bitmap.
- [`GetPixels`](/api/Sandbox.Bitmap/GetPixels): Retrieves the pixel data of the bitmap as an array of colors.
- [`GetPixels16`](/api/Sandbox.Bitmap/GetPixels16): Retrieves the pixel data as half-float colors.
- [`GetPixels32`](/api/Sandbox.Bitmap/GetPixels32): Retrieves the pixel data as 32-bit colors.
- [`HeightmapToNormalMap`](/api/Sandbox.Bitmap/HeightmapToNormalMap): Converts a heightmap to a normal map using parallel processing.
- [`InsertPadding`](/api/Sandbox.Bitmap/InsertPadding): Shrink the image by adding padding all around - without resizing the bitmap
- [`InvertColor`](/api/Sandbox.Bitmap/InvertColor): Inverts the colors of the bitmap while preserving alpha.
- [`IsIes`](/api/Sandbox.Bitmap/IsIes): Return true if this data is a Ies file
- [`IsOpaque`](/api/Sandbox.Bitmap/IsOpaque): Returns true if this bitmap is completely opaque (no alpha) This does a pixel by pixel search, so it's not the fastest.
- [`IsPsd`](/api/Sandbox.Bitmap/IsPsd): Checks if the provided byte array is a valid PSD file.
- [`IsTga`](/api/Sandbox.Bitmap/IsTga): Return true if this data is a Tga file
- [`IsTif`](/api/Sandbox.Bitmap/IsTif)
- [`Resize`](/api/Sandbox.Bitmap/Resize): Resizes the bitmap to the specified dimensions and returns a new bitmap.
- [`Rotate`](/api/Sandbox.Bitmap/Rotate): Rotates the bitmap by the specified angle.
- [`SetAntialias`](/api/Sandbox.Bitmap/SetAntialias): Sets the pen for drawing with a solid color and stroke style.
- [`SetBlendMode`](/api/Sandbox.Bitmap/SetBlendMode): Sets the pen to use a specific blend mode.
- [`SetDashedPen`](/api/Sandbox.Bitmap/SetDashedPen): Sets the pen for drawing dashed or dotted lines.
- [`SetFill`](/api/Sandbox.Bitmap/SetFill): Sets the pen for drawing filled shapes with a solid color.
- [`SetLinearGradient`](/api/Sandbox.Bitmap/SetLinearGradient): Sets the pen for drawing with a linear gradient.
- [`SetPen`](/api/Sandbox.Bitmap/SetPen): Sets the pen for drawing with a solid color and stroke style.
- [`SetPixel`](/api/Sandbox.Bitmap/SetPixel): Sets the color of a specific pixel in the bitmap.
- [`SetPixels`](/api/Sandbox.Bitmap/SetPixels)
- [`SetRadialGradient`](/api/Sandbox.Bitmap/SetRadialGradient): Sets the pen for drawing with a radial gradient.
- [`Sharpen`](/api/Sandbox.Bitmap/Sharpen): Applies a Gaussian blur effect to the current bitmap.
- [`Tint`](/api/Sandbox.Bitmap/Tint): Tint the bitmap using this color, respect alpha
- [`ToBmp`](/api/Sandbox.Bitmap/ToBmp): Exports the bitmap as a BMP byte array.
- [`ToFormat`](/api/Sandbox.Bitmap/ToFormat): Exports the bitmap to the specified engine format
- [`ToJpg`](/api/Sandbox.Bitmap/ToJpg): Exports the bitmap as a JPEG byte array with the specified quality.
- [`ToPng`](/api/Sandbox.Bitmap/ToPng): Exports the bitmap as a PNG byte array.
- [`ToTexture`](/api/Sandbox.Bitmap/ToTexture): Try to create a texture from this bitmap
- [`ToWebP`](/api/Sandbox.Bitmap/ToWebP): Exports the bitmap as an HDR WebP byte array with the specified quality.
