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

# fzrt_pbuf_set_port

Description

This will set the specified pixel buffer as the current port. The pixel buffer must be created with the FZRT_PBUF_FLAG_PORT flag in order to be able to be set as a current port. Since there are limitations on drawable pixel buffers, it is best to check the pixel buffer is drawable first. This function can fail if the pixel buffer is not drawable.

Plugin Prototype

fzrt_error_td fzrt_pbuf_set_port(

fzrt_pbuf_ptr | pbuf_ptr )

Parameters

pbuf_ptr [Input]

pointer to a drawable pixel buffer. Pixel buffer must be created with the FZRT_PBUF_FLAG_PORT flag

Returns

error id, FZRT_NOERR if successful

Availability

5.0.0.0

See Also

, , fzrt_pbuf_get_port

Function Set

fz_fzrt_graf_fset

Defined in

fzrt_api.h