formZ SDK | 5.0 API Reference | System | Runtime Library (FZRT) | Graphics

fzrt_pbuf_get_pixelsize

Description

Gets the size of a pixel in a pixel buffer. This will return the depth of a pixel buffer. The depth is considered the number of bits used for color data in a pixel. Generally this is either 8, 16, 24, or 32.

Plugin Prototype

fzrt_error_td fzrt_pbuf_get_pixelsize(

fzrt_pbuf_ptr

pixbuf,

short*

pixel_size )

Parameters

pixbuf [Input]

allocated pixbuf

pixel_size [Result]

number of bits needed for one pixel

Returns

FZRT_NOERR if successful, error number otherwise

Availability

5.0.0.0

Function Set

fz_fzrt_graf_fset


Defined in

fzrt_api.h