Click or drag to resize

IImage Interface

Version 75.1.140
Container for a single image represented at different scale factors. All image representations should be the same size in density independent pixel (DIP) units. For example, if the image at scale factor 1.0 is 100x100 pixels then the image at scale factor 2.0 should be 200x200 pixels -- both images will display with a DIP size of 100x100 units. The methods of this class must be called on the browser process UI thread.

Namespace:  CefSharp
Assembly:  CefSharp (in CefSharp.dll) Version: 75.1.140.0 (75.1.140.0)
Syntax
public interface IImage

The IImage type exposes the following members.

Properties
  NameDescription
Public propertyHeight
Returns the image height in density independent pixel(DIP) units.
Public propertyIsEmpty
Returns true if this Image is empty.
Public propertyWidth
Returns the image width in density independent pixel(DIP) units.
Top
Methods
  NameDescription
Public methodGetAsBitmap
Returns the bitmap representation that most closely matches scaleFactor.
Public methodGetAsJPEG
Returns the JPEG representation that most closely matches scaleFactor.
Public methodGetAsPNG
Returns the PNG representation that most closely matches scaleFactor.
Public methodGetRepresentationInfo
Returns information for the representation that most closely matches scaleFactor.
Public methodHasRepresentation
Returns true if this image contains a representation for scaleFactor.
Public methodIsSame
Returns true if this Image and that Image share the same underlying storage.
Public methodRemoveRepresentation
Removes the representation for scaleFactor.
Top
See Also