Repeatedly draw an image stored in a PhImage_t structure
int PgDrawRepPhImage( PhImage_t const *image, int flags, PhPoint_t const *pos, PhPoint_t const *rep, PhPoint_t const *space ); int PgDrawRepPhImagev( PhImage_t const *image, int flags, PhPoint_t const *pos, PhPoint_t const *rep, PhPoint_t const *space ); int PgDrawRepPhImageCx( void *dc, PhImage_t const *image, int flags, PhPoint_t const *pos, PhPoint_t const *rep, PhPoint_t const *space ); int PgDrawRepPhImageCxv( void *dc, PhImage_t const *image, int flags, PhPoint_t const *pos, PhPoint_t const *rep, PhPoint_t const *space );
ph
These functions unite the convenience of PgDrawPhImage*() and the ability to tile images of PgDrawRepImage*() or PgDrawRepBitmap*().
These functions draw:
The pos, rep, and space arguments all point to structures of type PhPoint_t.
You can pass any combination of the following bits in the flags argument:
If you call the “v” forms of this function, the data isn't
physically copied into the draw buffer. Instead, a pointer
to the image is stored until the draw buffer is flushed.
Make sure you call
PgFlush() or
PgFlushCx()
before you modify the image.
If the data is in shared memory, the “v” form of this function automatically passes a shared memory reference instead of the image. |
PgDrawRepPhImage() and PgDrawRepPhImagev() work on the current draw context, while you can specify the draw context dc for PgDrawRepPhImageCx() and PgDrawRepPhImageCxv().
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |
ApGetImageRes(), PgDrawPhImage*(), PgDrawPhImageRect*(), PgDrawRepImage*(), PgDrawRepBitmap*(), PgFlush*(), PhCreateImage(), PhImage_t, PhMakeGhostBitmap(), PhMakeTransBitmap(), PhMakeTransparent(), PhPoint_t, PhReleaseImage(), PmMemCreateMC(), PmMemFlush(), PxLoadImage()
“Images” in the Raw Drawing and Animation chapter of the Photon Programmer's Guide