Click or drag to resize

Bitmap Class

Represents an image
Inheritance Hierarchy

Namespace:  Eto.Drawing
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public class Bitmap : Image

The Bitmap type exposes the following members.

Constructors
  NameDescription
Public methodBitmap(Byte)
Initializes a new instance of a Bitmap from a bytes array
Public methodBitmap(Stream)
Initializes a new instance of a Bitmap from a stream
Public methodBitmap(String)
Initializes a new instance of a Bitmap from a file
Public methodBitmap(BitmapIHandler)
Initializes a new instance of a Bitmap with the specified handler
Public methodBitmap(Size, PixelFormat)
Initializes a new instance of a Bitmap with the specified size and format
Public methodBitmap(Int32, Int32, Graphics)
Creates a new bitmap optimized for drawing on the specified graphics
Public methodBitmap(Int32, Int32, PixelFormat)
Initializes a new instance of a Bitmap with the specified size and format
Public methodBitmap(Int32, Int32, PixelFormat, IEnumerableColor)
Creates a new bitmap with the specified dimensions, format and pixel data
Public methodBitmap(Int32, Int32, PixelFormat, IEnumerableInt32)
Creates a new bitmap with the specified dimensions, format, and integer pixel data
Public methodBitmap(Image, NullableInt32, NullableInt32, ImageInterpolation)
Create a new scaled bitmap with the specified width and height
Top
Methods
  NameDescription
Public methodClone
Creates a clone of the bitmap
Public methodStatic memberFromResource(String, Assembly)
Loads a bitmap from the resource in the specified or caller's assembly
Public methodStatic memberFromResource(String, Type)
Loads a bitmap from a resource in the same assembly as the specified type
Public methodGetPixel(Point)
Gets the color of the pixel at the specified position
Public methodGetPixel(Int32, Int32)
Gets the color of the pixel at the specified coordinates.
Public methodLock
Locks the data of the image to directly access the bytes of the image
Public methodSave(Stream, ImageFormat)
Saves the bitmap to a stream in the specified format
Public methodSave(String, ImageFormat)
Saves the bitmap to a file in the specified format
Public methodSetPixel(Point, Color)
Sets the pixel color at the specified position.
Public methodSetPixel(Int32, Int32, Color)
Sets the color of the pixel at the specified coordinates.
Public methodToByteArray
Saves the bitmap to an image of the specified imageFormat into a byte array
Public methodWithSize(Size)
Gets an Icon representation of this Bitmap scaled to draw within the specified fitting size.
Public methodWithSize(Int32, Int32)
Gets an Icon representation of this Bitmap scaled to draw within the specified fitting size.
Top
See Also