GXDrawGSPixMapPartOnCGContext
Draw part of a GSPixMap on the given CGContext.
GSErr GXDrawGSPixMapPartOnCGContext ( CGContextRef gc, GSPixMapHandle pixMap, const GSRect& srcRect, const GSRect& dstRect, Int32 cgContextHeight, AlphaChannelUsage acUsage );
Parameters
- gc
- The graphics context to draw on.
- pixMap
- The GSPixMap to be drawn.
- srcRect
- Rectangle that determines a part of the source pixmap that is to be drawn.
- dstRect
- Destination rectangle in the graphics context. The picture is stretched to fit this rectangle.
- cgContextHeight
- Height of the gc graphics context.
- acUsage
- If this value is AlphaChannelBlending, then the alpha channel value is used for blending the source pixel to the destination pixel. If it is CopyAlphaChannel (default), then the alpha channel value is copied just like the RGB color values.
Return Values
If the function succeeds, the return value is NoError. If the function fails, the return value is the error code.
Remarks
This function acessible only on Macintosh.
Requirements
- Version:
- GX 10 or later
- Header:
- Graphics2DMac.h
- Import Library:
- GXImp.lib
- Module:
- GX.framework [MAC]