FreeImageBitmap Methods

FreeImage.NET

FreeImageBitmap Methods

The FreeImageBitmap type exposes the following members.

Methods
  Name Description
Public method AdjustBrightness
Adjusts the brightness of a 8-, 24- or 32-bit image by a certain amount.
Public method AdjustColors
Adjusts an image's brightness, contrast and gamma as well as it may optionally invert the image within a single operation.
Public method AdjustContrast
Adjusts the contrast of a 8-, 24- or 32-bit image by a certain amount.
Public method AdjustCurve
Perfoms an histogram transformation on a 8-, 24- or 32-bit image.
Public method AdjustGamma
Performs gamma correction on a 8-, 24- or 32-bit image.
Public method ApplyColorMapping
Applies color mapping for one or several colors on a 1-, 4- or 8-bit palletized or a 16-, 24- or 32-bit high color image.
Public method ApplyPaletteIndexMapping
Applies palette index mapping for one or several indices on a 1-, 4- or 8-bit palletized image.
Public method Clone
Creates a deep copy of this FreeImageBitmap.
Public method CloneMetadataFrom(FreeImageBitmap)
Copies the metadata from another FreeImageBitmap.
Public method CloneMetadataFrom(FreeImageBitmap, FREE_IMAGE_METADATA_COPY)
Copies the metadata from another FreeImageBitmap using the provided options.
Public method Composite
This method composite a transparent foreground image against a single background color or against a background image. In case useBitmapBackground is false and applicationBackground and bitmapBackGround are null, a checkerboard will be used as background.
Public method ConvertColorDepth
Converts this FreeImageBitmap into a different color depth. The parameter bpp specifies color depth, greyscale conversion and palette reorder.

Adding the FICD_FORCE_GREYSCALE flag will first perform a convesion to greyscale. This can be done with any target color depth.

Adding the FICD_REORDER_PALETTE flag will allow the algorithm to reorder the palette. This operation will not be performed to non-greyscale images to prevent data loss by mistake.

Public method ConvertType
Converts this FreeImageBitmapFREE_IMAGE_TYPE to type initializing a new instance. In case source and destination type are the same, the operation fails. An error message can be catched using the 'Message' event.
Public method Copy(Rectangle)
Copy a sub part of this FreeImageBitmap.
Public method Copy(Int32, Int32, Int32, Int32)
Copy a sub part of this FreeImageBitmap.
Public method CreateICCProfile(Byte)
Creates a new ICC-Profile.
Public method CreateICCProfile(Byte, Int32)
Creates a new ICC-Profile.
Public method Static member CreateNewPropertyItem
Returns a new instance of the PropertyItem class which has no public accessible constructor.
Public method CreateObjRef
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject.)
Public method CreateView
Creates a dynamic read/write view into a FreeImage bitmap.
Public method Dispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Protected method Dispose(Boolean)
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Public method EnlargeCanvasT(Int32, Int32, Int32, Int32, NullableT)
Enlarges or shrinks this FreeImageBitmap selectively per side and fills newly added areas with the specified background color. See EnlargeCanvasT(FIBITMAP, Int32, Int32, Int32, Int32, NullableT, FREE_IMAGE_COLOR_OPTIONS) for further details.
Public method EnlargeCanvasT(Int32, Int32, Int32, Int32, NullableT, FREE_IMAGE_COLOR_OPTIONS)
Enlarges or shrinks this FreeImageBitmap selectively per side and fills newly added areas with the specified background color. See EnlargeCanvasT(FIBITMAP, Int32, Int32, Int32, Int32, NullableT, FREE_IMAGE_COLOR_OPTIONS) for further details.
Public method Equals
Determines whether this and the specified instances are the same.
(Overrides ObjectEquals(Object).)
Public method FillBackgroundT(T)
Sets all pixels of this FreeImageBitmap to the specified color. See FillBackgroundT(FIBITMAP, T, FREE_IMAGE_COLOR_OPTIONS) for further details.
Public method FillBackgroundT(T, FREE_IMAGE_COLOR_OPTIONS)
Sets all pixels of this FreeImageBitmap to the specified color. See FillBackgroundT(FIBITMAP, T, FREE_IMAGE_COLOR_OPTIONS) for further details.
Protected method Finalize
Frees all managed and unmanaged ressources.
(Overrides ObjectFinalize.)
Public method Static member FreeHbitmap
Frees a bitmap handle.
Public method Static member FromFile(String)
Creates a FreeImageBitmap from the specified file.
Public method Static member FromFile(String, Boolean)
Creates a FreeImageBitmap from the specified file using embedded color management information in that file.
Public method Static member FromHbitmap(IntPtr)
Creates a FreeImageBitmap from a handle to a GDI bitmap.
Public method Static member FromHbitmap(IntPtr, IntPtr)
Creates a FreeImageBitmap from a handle to a GDI bitmap and a handle to a GDI palette.
Public method Static member FromHicon
Creates a FreeImageBitmap from a Windows handle to an icon.
Public method Static member FromResource
Creates a FreeImageBitmap from the specified Windows resource.
Public method Static member FromStream(Stream)
Creates a FreeImageBitmap from the specified data stream.
Public method Static member FromStream(Stream, Boolean)
Creates a FreeImageBitmap from the specified data stream.
Public method Static member FromStream(Stream, Boolean, Boolean)
Creates a FreeImageBitmap from the specified data stream.
Public method Static member GetAdjustColorsLookupTable
Creates a lookup table to be used with AdjustCurve() which may adjusts brightness and contrast, correct gamma and invert the image with a single call to AdjustCurve().
Public method GetBounds
Gets the bounds of this FreeImageBitmap in the specified unit.
Public method GetChannel
Retrieves the red, green, blue or alpha channel of a 24- or 32-bit image.
Public method GetColorConvertedInstance
Converts this FreeImageBitmap into a different color depth initializing a new instance. The parameter bpp specifies color depth, greyscale conversion and palette reorder.

Adding the FICD_FORCE_GREYSCALE flag will first perform a convesion to greyscale. This can be done with any target color depth.

Adding the FICD_REORDER_PALETTE flag will allow the algorithm to reorder the palette. This operation will not be performed to non-greyscale images to prevent data loss by mistake.

Public method GetComplexChannel
Retrieves the real part, imaginary part, magnitude or phase of a complex image.
Public method GetEnlargedInstanceT(Int32, Int32, Int32, Int32, NullableT)
Enlarges or shrinks this FreeImageBitmap selectively per side and fills newly added areas with the specified background color returning a new instance. See EnlargeCanvasT(FIBITMAP, Int32, Int32, Int32, Int32, NullableT, FREE_IMAGE_COLOR_OPTIONS) for further details.
Public method GetEnlargedInstanceT(Int32, Int32, Int32, Int32, NullableT, FREE_IMAGE_COLOR_OPTIONS)
Enlarges or shrinks this FreeImageBitmap selectively per side and fills newly added areas with the specified background color returning a new instance. See EnlargeCanvasT(FIBITMAP, Int32, Int32, Int32, Int32, NullableT, FREE_IMAGE_COLOR_OPTIONS) for further details.
Public method GetHashCode
Returns a hash code for this FreeImageBitmap structure.
(Overrides ObjectGetHashCode.)
Public method GetHbitmap
Creates a GDI bitmap object from this FreeImageBitmap.
Public method GetHbitmap(Color)
Creates a GDI bitmap object from this FreeImageBitmap.
Public method GetHbitmapForDevice
Creates a GDI bitmap object from this FreeImageBitmap with the same color depth as the primary device.
Public method GetHicon
Returns the handle to an icon.
Public method GetHistogram
Computes the image histogram.
Public method GetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public method GetPixel
Gets the Color of the specified pixel in this FreeImageBitmap.
Public method Static member GetPixelFormatSize
Returns the color depth, in number of bits per pixel, of the specified pixel format.
Public method GetPropertyItem
Gets the specified property item from this FreeImageBitmap.
Public method GetQuantizedInstance(FREE_IMAGE_QUANTIZE, Int32)
Quantizes this FreeImageBitmap from 24 bit, using the specified algorithm initializing a new 8 bit instance with the specified paletteSize.
Public method GetQuantizedInstance(FREE_IMAGE_QUANTIZE, Int32, Palette)
Quantizes this FreeImageBitmap from 24 bit, using the specified algorithm and reservePalette initializing a new 8 bit instance with the specified paletteSize.
Public method GetQuantizedInstance(FREE_IMAGE_QUANTIZE, Int32, Int32, Palette)
Quantizes this FreeImageBitmap from 24 bit, using the specified algorithm and up to reserveSize entries from reservePalette initializing a new 8 bit instance with the specified paletteSize.
Public method GetQuantizedInstance(FREE_IMAGE_QUANTIZE, Int32, Int32, RGBQUAD)
Quantizes this FreeImageBitmap from 24 bit, using the specified algorithm and up to reserveSize entries from reservePalette initializing a new 8 bit instance with the specified paletteSize.
Public method GetRotatedInstance(Double)
Rotates this FreeImageBitmap by the specified angle initializing a new instance. For 1- and 4-bit images, rotation is limited to angles whose value is an integer multiple of 90.
Public method GetRotatedInstance(Double, Double, Double, Double, Double, Boolean)
This method performs a rotation and / or translation of an 8-bit greyscale, 24- or 32-bit image, using a 3rd order (cubic) B-Spline initializing a new instance.
Public method GetRotatedInstanceT(Double, NullableT)
Rotates this FreeImageBitmap by the specified angle initializing a new instance. For 1- and 4-bit images, rotation is limited to angles whose value is an integer multiple of 90.
Public method GetScaledInstance(Size, FREE_IMAGE_FILTER)
Rescales this FreeImageBitmap to the specified size using the specified filter initializing a new instance.
Public method GetScaledInstance(Int32, Int32, FREE_IMAGE_FILTER)
Rescales this FreeImageBitmap to the specified size using the specified filter initializing a new instance.
Public method Code example GetScanline(Int32)
Returns an instance of ScanlineT, representing the scanline specified by scanline of this FreeImageBitmap. Since FreeImage bitmaps are always bottum up aligned, keep in mind that scanline 0 is the bottom-most line of the image.
Public method Code example GetScanlineT(Int32)
Returns an instance of ScanlineT, representing the scanline specified by scanline of this FreeImageBitmap. Since FreeImage bitmaps are always bottum up aligned, keep in mind that scanline 0 is the bottom-most line of the image.
Public method GetScanlinePointer
Returns a pointer to the specified scanline. Due to FreeImage bitmaps are bottum up, scanline 0 is the most bottom line of the image.
Public method GetScanlines
Returns a list of structures, representing the scanlines of this FreeImageBitmap. Due to FreeImage bitmaps are bottum up, scanline 0 is the bottom-most line of the image. Each color depth has a different representing structure due to different memory layouts.
Public method GetThumbnailImage(Int32, Boolean) Obsolete.
Returns a thumbnail for this FreeImageBitmap, keeping aspect ratio. maxPixelSize defines the maximum width or height of the thumbnail.
Public method GetThumbnailImage(Int32, Int32, ImageGetThumbnailImageAbort, IntPtr)
Returns a thumbnail for this FreeImageBitmap.
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method GetTypeConvertedInstance
Converts this FreeImageBitmapFreeImageBitmap to type. In case source and destination type are the same, the operation fails. An error message can be catched using the 'Message' event.
Public method GetWICMetadataHandler
Gets a WICMetadataHandler (Windows Imaging Component Metadata Handler) for this FreeImageBitmap.
Public method InitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public method Invert
Inverts each pixel data.
Public method Static member IsAlphaPixelFormat
Returns a value that indicates whether the pixel format for this FreeImageBitmap contains alpha information.
Public method Static member IsCanonicalPixelFormat
Returns a value that indicates whether the pixel format is 32 bits per pixel.
Public method Static member IsExtendedPixelFormat
Returns a value that indicates whether the pixel format is 64 bits per pixel.
Public method Static member JPEGCrop(String, String, Rectangle)
Performs a lossless crop on a JPEG file.
Public method Static member JPEGCrop(String, String, Int32, Int32, Int32, Int32)
Performs a lossless crop on a JPEG file.
Public method Static member JPEGTransform
Performs a lossless rotation or flipping on a JPEG file.
Public method LockBits(Rectangle, ImageLockMode, PixelFormat)
This function is not yet implemented.
Public method LockBits(Rectangle, ImageLockMode, PixelFormat, BitmapData)
This function is not yet implemented.
Public method Static member LookupSVGColor
Converts a SVG color name into a corresponding RGB value.
Public method Static member LookupX11Color
Converts a X11 color name into a corresponding RGB value.
Public method MakeThumbnail
Returns a thumbnail for this FreeImageBitmap, keeping aspect ratio. maxPixelSize defines the maximum width or height of the thumbnail.
Public method MakeTransparent
Makes the default transparent color transparent for this FreeImageBitmap.
Public method MakeTransparent(Color)
Makes the specified color transparent for this FreeImageBitmap.
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected method MemberwiseClone(Boolean)
Creates a shallow copy of the current MarshalByRefObject object.
(Inherited from MarshalByRefObject.)
Public method MultigridPoissonSolver
Solves a Poisson equation, remap result pixels to [0..1] and returns the solution.
Public method Paste(FreeImageBitmap, Point, Int32)
Alpha blend or combine a sub part image with tthis FreeImageBitmap. The bit depth of bitmap must be greater than or equal to the bit depth this instance.
Public method Paste(FreeImageBitmap, Int32, Int32, Int32)
Alpha blend or combine a sub part image with this FreeImageBitmap. The bit depth of bitmap must be greater than or equal to the bit depth this instance.
Public method PreMultiplyWithAlpha
Applies the alpha value of each pixel to its color components. The aplha value stays unchanged. Only works with 32-bits color depth.
Public method Quantize(FREE_IMAGE_QUANTIZE, Int32)
Quantizes this FreeImageBitmap from 24 bit to 8bit creating a new palette with the specified paletteSize using the specified algorithm.
Public method Quantize(FREE_IMAGE_QUANTIZE, Int32, Palette)
Quantizes this FreeImageBitmap from 24 bit to 8bit creating a new palette with the specified paletteSize using the specified algorithm and the specified reservePalette up to the specified paletteSize.
Public method Quantize(FREE_IMAGE_QUANTIZE, Int32, Int32, Palette)
Quantizes this FreeImageBitmap from 24 bit to 8bit creating a new palette with the specified paletteSize using the specified algorithm and the specified reservePalette up to the specified paletteSize.
Public method Quantize(FREE_IMAGE_QUANTIZE, Int32, Int32, RGBQUAD)
Quantizes this FreeImageBitmap from 24 bit to 8bit creating a new palette with the specified paletteSize using the specified algorithm and the specified reservePalette up to the specified paletteSize.
Public method RemovePropertyItem
Removes the specified property item from this FreeImageBitmap.
Public method Rescale(Size, FREE_IMAGE_FILTER)
Rescales this FreeImageBitmap to the specified size using the specified filter.
Public method Rescale(Int32, Int32, FREE_IMAGE_FILTER)
Rescales this FreeImageBitmap to the specified size using the specified filter.
Public method RescaleRect
Public method Rotate(Double)
This method rotates a 1-, 4-, 8-bit greyscale or a 24-, 32-bit color image by means of 3 shears. For 1- and 4-bit images, rotation is limited to angles whose value is an integer multiple of 90.
Public method Rotate(Double, Double, Double, Double, Double, Boolean)
This method performs a rotation and / or translation of an 8-bit greyscale, 24- or 32-bit image, using a 3rd order (cubic) B-Spline.
Public method RotateT(Double, NullableT)
This method rotates a 1-, 4-, 8-bit greyscale or a 24-, 32-bit color image by means of 3 shears. For 1- and 4-bit images, rotation is limited to angles whose value is an integer multiple of 90.
Public method RotateFlip
This method rotates, flips, or rotates and flips this FreeImageBitmap.
Public method Save(String)
Saves this FreeImageBitmap to the specified file.
Public method Save(Stream, FREE_IMAGE_FORMAT)
Saves this FreeImageBitmap to the specified stream in the specified format.
Public method Save(String, FREE_IMAGE_FORMAT)
Saves this FreeImageBitmap to the specified file in the specified format.
Public method Save(Stream, FREE_IMAGE_FORMAT, FREE_IMAGE_SAVE_FLAGS)
Saves this FreeImageBitmap to the specified stream in the specified format using the specified saving flags.
Public method Save(String, FREE_IMAGE_FORMAT, FREE_IMAGE_SAVE_FLAGS)
Saves this FreeImageBitmap to the specified file in the specified format using the specified saving flags.
Public method SaveAdd
Adds a frame to the file specified in a previous call to the Save(String) method.
Public method SaveAdd(Int32)
Adds a frame to the file specified in a previous call to the Save(String) method.
Public method SaveAdd(String)
Adds a frame to the file specified.
Public method SaveAdd(FreeImageBitmap)
Adds a frame to the file specified in a previous call to the Save(String) method.
Public method SaveAdd(String, Int32)
Adds a frame to the file specified.
Public method SaveAdd(FreeImageBitmap, Int32)
Adds a frame to the file specified in a previous call to the Save(String) method.
Public method SaveAdd(String, FREE_IMAGE_FORMAT, FREE_IMAGE_LOAD_FLAGS, FREE_IMAGE_SAVE_FLAGS)
Adds a frame to the file specified using the specified parameters.
Public method Static member SaveAdd(String, FreeImageBitmap, FREE_IMAGE_FORMAT, FREE_IMAGE_LOAD_FLAGS, FREE_IMAGE_SAVE_FLAGS)
Adds a specified frame to the file specified using the specified parameters. Use this method to save selected frames from an to a multiple-frame image.
Public method SaveAdd(String, Int32, FREE_IMAGE_FORMAT, FREE_IMAGE_LOAD_FLAGS, FREE_IMAGE_SAVE_FLAGS)
Adds a frame to the file specified using the specified parameters.
Public method Static member SaveAdd(String, FreeImageBitmap, Int32, FREE_IMAGE_FORMAT, FREE_IMAGE_LOAD_FLAGS, FREE_IMAGE_SAVE_FLAGS)
Adds a specified frame to the file specified using the specified parameters. Use this method to save selected frames from an image to a multiple-frame image.
Public method SelectActiveFrame
Selects the frame specified by the index.
Public method SetChannel
Insert a 8-bit dib into a 24- or 32-bit image. Both images must have to same width and height.
Public method SetComplexChannel
Set the real or imaginary part of a complex image. Both images must have to same width and height.
Public method SetPixel
Sets the Color of the specified pixel in this FreeImageBitmap.
Public method SetResolution
Sets the resolution for this FreeImageBitmap.
Public method SwapColors
Swaps two specified colors on a 1-, 4- or 8-bit palletized or a 16-, 24- or 32-bit high color image.
Public method SwapPaletteIndices
Swaps two specified palette indices on a 1-, 4- or 8-bit palletized image.
Public method TmoDrago03
Converts a High Dynamic Range image to a 24-bit RGB image using a global operator based on logarithmic compression of luminance values, imitating the human response to light.
Public method TmoFattal02
Apply the Gradient Domain High Dynamic Range Compression to a RGBF image and convert to 24-bit RGB.
Public method TmoReinhard05
Converts a High Dynamic Range image to a 24-bit RGB image using a global operator inspired by photoreceptor physiology of the human visual system.
Public method ToBitmap
Converts this FreeImageBitmap instance to a Bitmap instance.
Public method ToString
Returns a string that represents the current object.
(Inherited from Object.)
Public method UnlockBits
This function is not yet implemented.
Top
See Also