Blit an area
int PgBlit( const PhRect_t *rect, const PhPoint_t *offset ); int PgBlitCx( void dc, const PhRect_t *rect, const PhPoint_t *offset );
- PgBlitCx() only. A void pointer to any type of draw context. Examples of draw contexts are:
- A pointer to a PhRect_t structure that defines the area the function blits.
- A pointer to a PhPoint_t that defines an offset for the blitted area rect.
These functions “blit” the area that is defined by rect. The area is blitted by the given offset. Other windows aren't affected by the blit.
PgBlit() blits the region defined by the region set for the current draw context, while PgBlitCx() lets you define the draw context dc.
- A nonnegative value
- The blit failed, possibly because the Photon Manager wasn't running.