Blit an area within a region
int PhBlit( PhRid_t rid, const PhRect_t *rect, const PhPoint_t *offset );
ph
This function “blits” the area that is defined by the PhRect_t structure pointed to by rect and whose origin is defined by the origin of the region specified by the PhPoint_t structure pointed to by rid. The area is blitted by the given offset. Other windows aren't affected by the blit.
PhRect_t rect = { 10,10,20,20}; PhPoint_t offset = { -5, 5 }; PhRect_t exposed = { 15, 10, 20, 15 }; // Blit the area bounded by (10,10), (20,20) // five pixels left and five pixels down. PhBlit( PtWidgetRid( region_widget ), &rect, &offset ); PtDamageExtent( region_widget, &exposed );
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |
PhMultiBlit() PhPoint_t, PhRect_t, PgBlit*(), PtClippedBlit(), PtWidgetRid()