AtalaImageFromBitmapData Method |
Note: This API is now obsolete.
Returns an %AtalaImage% that contains the same image pointer that's in the specified
BitmapData object.
Namespace:
Atalasoft.Imaging
Assembly:
Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax [ObsoleteAttribute("This method has been deprecated. Please use FromBitmap")]
public static AtalaImage FromBitmapData(
BitmapData bd,
ColorPalette palette
)
<ObsoleteAttribute("This method has been deprecated. Please use FromBitmap")>
Public Shared Function FromBitmapData (
bd As BitmapData,
palette As ColorPalette
) As AtalaImage
Parameters
- bd
- Type: System.Drawing.ImagingBitmapData
The BitmapData created from a Bitmap by locking the bits. - palette
- Type: System.Drawing.ImagingColorPalette
The palette of the Bitmap. Set to null (Nothing in Visual
Basic) if the Bitmap doesn't contain a palette.
Return Value
Type:
AtalaImage An %AtalaImage% that contains the same image pointer that's in the specified BitmapData object.
Remarks Use this method to set an existing Bitmap object to an AtalaImage
without copying the data. This method should be used with care as the source Bitmap will always
control the image memory, and can be disposed by the garbage collector if all references are removed.
See Also