Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- std::vector<AGObject*> GeneratePattern(double left, double right,
- double top, double bottom,
- double resolution, AG_ObjectType patternType,
- AG_PolygoneType polygoneType, double dotwidth,
- double dotheight, double horspace,
- double verspace, double angle,
- AG_RasterType rasterType, double stroke,
- AG_CMYKColor strokeColor, AG_CMYKColor fillColor,
- unsigned char* imageMask, long columns,
- long rows, long nextline, double maskGap,
- AG_PositionType maskPosition, bool inverse) {
- std::vector<AGObject*> myPattern;
- myPattern.clear();
- return myPattern;
- };
- NSBitmapImageRep *greyImageRep = [[NSBitmapImageRep alloc] initWithBitmapDataPlanes:NULL /* bitmap, allocate thyself! */
- pixelsWide:[tempImageRep pixelsWide]
- pixelsHigh:[tempImageRep pixelsHigh]
- bitsPerSample:8
- samplesPerPixel:1
- hasAlpha:NO
- isPlanar:NO
- colorSpaceName:NSDeviceWhiteColorSpace
- bytesPerRow:[tempImageRep pixelsWide]
- bitsPerPixel:8]; // this specifies the pixel format
- unsigned char *data = [tempImageRep bitmapData];`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement