| Pepper_42_C_interfaces
    | 
#include <ppb_image_data.h>

| Public Attributes | |
| PP_ImageDataFormat(* | GetNativeImageDataFormat )(void) | 
| PP_Bool(* | IsImageDataFormatSupported )(PP_ImageDataFormat format) | 
| PP_Resource(* | Create )(PP_Instance instance, PP_ImageDataFormat format, const struct PP_Size *size, PP_Bool init_to_zero) | 
| PP_Bool(* | IsImageData )(PP_Resource image_data) | 
| PP_Bool(* | Describe )(PP_Resource image_data, struct PP_ImageDataDesc *desc) | 
| void *(* | Map )(PP_Resource image_data) | 
| void(* | Unmap )(PP_Resource image_data) | 
The PPB_ImageData interface contains pointers to several functions for determining the browser's treatment of image data. 
Definition at line 108 of file ppb_image_data.h.
| PP_Resource(* PPB_ImageData_1_0::Create)(PP_Instance instance, PP_ImageDataFormat format, const struct PP_Size *size, PP_Bool init_to_zero) | 
Create() allocates an image data resource with the given format and size.
For security reasons, if uninitialized, the bitmap will not contain random memory, but may contain data from a previous image produced by the same module if the bitmap was cached and re-used.
| [in] | instance | A PP_Instanceidentifying one instance of a module. | 
| [in] | format | The desired image data format. | 
| [in] | size | A pointer to a PP_Sizecontaining the image size. | 
| [in] | init_to_zero | A PP_Boolto determine transparency at creation. Set theinit_to_zeroflag if you want the bitmap initialized to transparent during the creation process. If this flag is not set, the current contents of the bitmap will be undefined, and the module should be sure to set all the pixels. | 
PP_Resource with a nonzero ID on success or zero on failure. Failure means the instance, image size, or format was invalid. Definition at line 153 of file ppb_image_data.h.
| PP_Bool(* PPB_ImageData_1_0::Describe)(PP_Resource image_data, struct PP_ImageDataDesc *desc) | 
Describe() computes the description of the image data.
| [in] | image_data | A PP_Resourcecorresponding to image data. | 
| [in,out] | desc | A pointer to a PP_ImageDataDesccontaining the description. | 
PP_Bool with PP_TRUE on success or PP_FALSE if the resource is not an image data. On PP_FALSE, the desc structure will be filled with 0. Definition at line 182 of file ppb_image_data.h.
| PP_ImageDataFormat(* PPB_ImageData_1_0::GetNativeImageDataFormat)(void) | 
GetNativeImageDataFormat() returns the browser's preferred format for image data. The browser uses this format internally for painting. Other formats may require internal conversions to paint or may have additional restrictions depending on the function.
PP_ImageDataFormat containing the preferred format. Definition at line 117 of file ppb_image_data.h.
| PP_Bool(* PPB_ImageData_1_0::IsImageData)(PP_Resource image_data) | 
IsImageData() determines if a given resource is image data.
| [in] | image_data | A PP_Resourcecorresponding to image data. | 
PP_Bool with PP_TRUE if the given resource is an image data or PP_FALSE if the resource is invalid or some type other than image data. Definition at line 167 of file ppb_image_data.h.
| PP_Bool(* PPB_ImageData_1_0::IsImageDataFormatSupported)(PP_ImageDataFormat format) | 
IsImageDataFormatSupported() determines if the given image data format is supported by the browser. Note: PP_IMAGEDATAFORMAT_BGRA_PREMUL and PP_IMAGEDATAFORMAT_RGBA_PREMUL formats are always supported. Other image formats do not make this guarantee, and should be checked first with IsImageDataFormatSupported() before using.
| [in] | format | The image data format. | 
PP_Bool with PP_TRUE if the given image data format is supported by the browser. Definition at line 130 of file ppb_image_data.h.
| void*(* PPB_ImageData_1_0::Map)(PP_Resource image_data) | 
Map() maps an image data into the module address space.
| [in] | image_data | A PP_Resourcecorresponding to image data. | 
Definition at line 191 of file ppb_image_data.h.
| void(* PPB_ImageData_1_0::Unmap)(PP_Resource image_data) | 
Unmap is a pointer to a function that unmaps an image data from the module address space.
| [in] | image_data | A PP_Resourcecorresponding to image data. | 
Definition at line 199 of file ppb_image_data.h.
 1.8.6
 1.8.6