Function pdfium_render::bindgen::FPDFBitmap_FillRect
source · [−]pub unsafe extern "C" fn FPDFBitmap_FillRect(
bitmap: FPDF_BITMAP,
left: c_int,
top: c_int,
width: c_int,
height: c_int,
color: FPDF_DWORD
)Expand description
Function: FPDFBitmap_FillRect Fill a rectangle in a bitmap. Parameters: bitmap - The handle to the bitmap. Returned by FPDFBitmap_Create. left - The left position. Starting from 0 at the left-most pixel. top - The top position. Starting from 0 at the top-most line. width - Width in pixels to be filled. height - Height in pixels to be filled. color - A 32-bit value specifing the color, in 8888 ARGB format. Return value: None. Comments: This function sets the color and (optionally) alpha value in the specified region of the bitmap.
NOTE: If the alpha channel is used, this function does NOT
composite the background with the source color, instead the
background will be replaced by the source color and the alpha.
If the alpha channel is not used, the alpha parameter is ignored.