Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.82 KB | None | 0 0
  1. std::vector<AGObject*> GeneratePattern(double left, double right,
  2. double top, double bottom,
  3. double resolution, AG_ObjectType patternType,
  4. AG_PolygoneType polygoneType, double dotwidth,
  5. double dotheight, double horspace,
  6. double verspace, double angle,
  7. AG_RasterType rasterType, double stroke,
  8. AG_CMYKColor strokeColor, AG_CMYKColor fillColor,
  9. unsigned char* imageMask, long columns,
  10. long rows, long nextline, double maskGap,
  11. AG_PositionType maskPosition, bool inverse) {
  12. std::vector<AGObject*> myPattern;
  13. myPattern.clear();
  14.  
  15. return myPattern;
  16. };
  17.  
  18. NSBitmapImageRep *greyImageRep = [[NSBitmapImageRep alloc] initWithBitmapDataPlanes:NULL /* bitmap, allocate thyself! */
  19. pixelsWide:[tempImageRep pixelsWide]
  20. pixelsHigh:[tempImageRep pixelsHigh]
  21. bitsPerSample:8
  22. samplesPerPixel:1
  23. hasAlpha:NO
  24. isPlanar:NO
  25. colorSpaceName:NSDeviceWhiteColorSpace
  26. bytesPerRow:[tempImageRep pixelsWide]
  27. bitsPerPixel:8]; // this specifies the pixel format
  28. unsigned char *data = [tempImageRep bitmapData];`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement