Is there a way to tile an image in objective-j on a CPView? something along the lines of:
- [CPImage alloc] initWithPatternImage:@"Resources/grid.png" size:CGSizeMake(5.0, 5.0)]
Thanks guys ;)
Is there a way to tile an image in objective-j on a CPView? something along the lines of:
Thanks guys ;)
Try this:
var image = [[CPImage alloc]
initWithContentsOfFile:"Resources/myimage.gif"
size:CGSizeMake(20, 20)];
var imageView = [[CPImageView alloc] initWithFrame:CGRectMake(0,0,500,500)];
[imageView setBackgroundColor:[CPColor colorWithPatternImage:image]];