Click or drag to resize

Bitmap Methods

The Bitmap type exposes the following members.

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