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

# fzrt_pbuf_copy_from_graf_port

Description

Copies pixel data from a port into a pixel buffer. This will copy the contents of graf ptr to a pixel buffer. The destination pixel buffer must be allocated before copy. If the src and destination rectangles are different sizes, the pixels will be stretched (or compressed).

Plugin Prototype

fzrt_error_td fzrt_pbuf_copy_from_graf_port(

fzrt_graf_ptr | src_port,
fzrt_rect * | src_rect,
fzrt_pbuf_ptr | dst_pixbuf,
fzrt_pbuf_rect_td * | dst_rect,
fzrt_unsigned_int | flags )

Parameters

src_port [Input]

graf pointer

src_rect [Input]

source rectangle

dst_pixbuf [Input]

destination pixbuf - already allocated

dst_rect [Input]

destination rectangle

flags [Input]

flags - 0 for now

Returns

FZRT_NOERR if successful, error code otherwise

Availability

5.0.0.0

Function Set

fz_fzrt_graf_fset

Defined in

fzrt_api.h