# Class TCefImageRef

Description
Hierarchy
Methods

## Unit

uCEFImage

## Declaration

`type TCefImageRef = class(TCefBaseRefCountedRef, ICefImage)`

## Description

This item has no description.

## Hierarchy

- TInterfacedObject
- TCefBaseRefCountedRef
- TCefImageRef

## Overview

### Methods

Protected | `function IsEmpty: Boolean;`
Protected | `function IsSame(const that: ICefImage): Boolean;`
Protected | `function AddBitmap(scaleFactor: Single; pixelWidth, pixelHeight: Integer; colorType: TCefColorType; alphaType: TCefAlphaType; const pixelData: Pointer; pixelDataSize: NativeUInt): Boolean;`
Protected | `function AddPng(scaleFactor: Single; const pngData: Pointer; pngDataSize: NativeUInt): Boolean;`
Protected | `function AddJpeg(scaleFactor: Single; const jpegData: Pointer; jpegDataSize: NativeUInt): Boolean;`
Protected | `function GetWidth: NativeUInt;`
Protected | `function GetHeight: NativeUInt;`
Protected | `function HasRepresentation(scaleFactor: Single): Boolean;`
Protected | `function RemoveRepresentation(scaleFactor: Single): Boolean;`
Protected | `function GetRepresentationInfo(scaleFactor: Single; var actualScaleFactor: Single; var pixelWidth, pixelHeight: Integer): Boolean;`
Protected | `function GetAsBitmap(scaleFactor: Single; colorType: TCefColorType; alphaType: TCefAlphaType; var pixelWidth, pixelHeight: Integer): ICefBinaryValue;`
Protected | `function GetAsPng(scaleFactor: Single; withTransparency: Boolean; var pixelWidth, pixelHeight: Integer): ICefBinaryValue;`
Protected | `function GetAsJpeg(scaleFactor: Single; quality: Integer; var pixelWidth, pixelHeight: Integer): ICefBinaryValue;`
Public | `class function UnWrap(data: Pointer): ICefImage;`
Public | `class function New: ICefImage;`

## Description

### Methods

Protected | `function IsEmpty: Boolean;`
This item has no description. Showing description inherited from ICefImage.IsEmpty. Returns true (1) if this Image is NULL.

Protected | `function IsSame(const that: ICefImage): Boolean;`
This item has no description. Showing description inherited from ICefImage.IsSame. Returns true (1) if this Image and |that| Image share the same underlying storage. Will also return true (1) if both images are NULL.

Protected | `function AddBitmap(scaleFactor: Single; pixelWidth, pixelHeight: Integer; colorType: TCefColorType; alphaType: TCefAlphaType; const pixelData: Pointer; pixelDataSize: NativeUInt): Boolean;`
This item has no description. Showing description inherited from ICefImage.AddBitmap. Add a bitmap image representation for |scale_factor|. Only 32-bit RGBA/BGRA formats are supported. |pixel_width| and |pixel_height| are the bitmap representation size in pixel coordinates. |pixel_data| is the array of pixel data and should be |pixel_width| x |pixel_height| x 4 bytes in size. |color_type| and |alpha_type| values specify the pixel format.

Protected | `function AddPng(scaleFactor: Single; const pngData: Pointer; pngDataSize: NativeUInt): Boolean;`
This item has no description. Showing description inherited from ICefImage.AddPng. Add a PNG image representation for |scale_factor|. |png_data| is the image data of size |png_data_size|. Any alpha transparency in the PNG data will be maintained.

Protected | `function AddJpeg(scaleFactor: Single; const jpegData: Pointer; jpegDataSize: NativeUInt): Boolean;`
This item has no description. Showing description inherited from ICefImage.AddJpeg. Create a JPEG image representation for |scale_factor|. |jpeg_data| is the image data of size |jpeg_data_size|. The JPEG format does not support transparency so the alpha byte will be set to 0xFF for all pixels.

Protected | `function GetWidth: NativeUInt;`
This item has no description. Showing description inherited from ICefImage.GetWidth. Returns the image width in density independent pixel (DIP) units.

Protected | `function GetHeight: NativeUInt;`
This item has no description. Showing description inherited from ICefImage.GetHeight. Returns the image height in density independent pixel (DIP) units.

Protected | `function HasRepresentation(scaleFactor: Single): Boolean;`
This item has no description. Showing description inherited from ICefImage.HasRepresentation. Returns true (1) if this image contains a representation for |scale_factor|.

Protected | `function RemoveRepresentation(scaleFactor: Single): Boolean;`
This item has no description. Showing description inherited from ICefImage.RemoveRepresentation. Removes the representation for |scale_factor|. Returns true (1) on success.

Protected | `function GetRepresentationInfo(scaleFactor: Single; var actualScaleFactor: Single; var pixelWidth, pixelHeight: Integer): Boolean;`
This item has no description. Showing description inherited from ICefImage.GetRepresentationInfo. Returns information for the representation that most closely matches |scale_factor|. |actual_scale_factor| is the actual scale factor for the representation. |pixel_width| and |pixel_height| are the representation size in pixel coordinates. Returns true (1) on success.

Protected | `function GetAsBitmap(scaleFactor: Single; colorType: TCefColorType; alphaType: TCefAlphaType; var pixelWidth, pixelHeight: Integer): ICefBinaryValue;`
This item has no description. Showing description inherited from ICefImage.GetAsBitmap. Returns the bitmap representation that most closely matches |scale_factor|. Only 32-bit RGBA/BGRA formats are supported. |color_type| and |alpha_type| values specify the desired output pixel format. |pixel_width| and |pixel_height| are the output representation size in pixel coordinates. Returns a ICefBinaryValue containing the pixel data on success or NULL on failure.

Protected | `function GetAsPng(scaleFactor: Single; withTransparency: Boolean; var pixelWidth, pixelHeight: Integer): ICefBinaryValue;`
This item has no description. Showing description inherited from ICefImage.GetAsPng. Returns the PNG representation that most closely matches |scale_factor|. If |with_transparency| is true (1) any alpha transparency in the image will be represented in the resulting PNG data. |pixel_width| and |pixel_height| are the output representation size in pixel coordinates. Returns a ICefBinaryValue containing the PNG image data on success or NULL on failure.

Protected | `function GetAsJpeg(scaleFactor: Single; quality: Integer; var pixelWidth, pixelHeight: Integer): ICefBinaryValue;`
This item has no description. Showing description inherited from ICefImage.GetAsJpeg. Returns the JPEG representation that most closely matches |scale_factor|. |quality| determines the compression level with 0 == lowest and 100 == highest. The JPEG format does not support alpha transparency and the alpha channel, if any, will be discarded. |pixel_width| and |pixel_height| are the output representation size in pixel coordinates. Returns a ICefBinaryValue containing the JPEG image data on success or NULL on failure.

Public | `class function UnWrap(data: Pointer): ICefImage;`
This item has no description.

Public | `class function New: ICefImage;`
This item has no description.

Generated by PasDoc 1.0.4.