CGImage represents a drawable image object in Core Graphics (the low-level procedural drawing API for iOS and Mac OS X).
Questions tagged [cgimage]
563 questions
0
votes
1 answer
How to overlay one CGImage over another
I wish to overlay one CGImage over another.
As an example the first CGImage is 1024x768 and want to overlay a second 100x100 CGImage at a given location.
I have seen how to do this using NSImage but don't really want to convert my CGImages to…

Equinox2000
- 576
- 6
- 17
0
votes
1 answer
How to add a CGImageRef to a NSDictionary?
I have a CGImageRef variable and a CGRect (so no pointers) and I need to add it to an NSDictionary. Like an NSArray, NSDictionary-s only accept pointers. How can you add an CGImageRef or an CGRect anyway?
Stefan
0
votes
2 answers
CGImage: List of supported image formats
I want to query a list of all supported image formats (and file extensions) in Mac OS X, so that I can include those file extensions in a Qt "Open Image" dialog. I use CGImage to load the image.
At the moment I use a static list, but I want to…

Thomas
- 514
- 4
- 14
0
votes
1 answer
Disposing UIImage and CGImage
Do I need to dispose UIImages and CGImages in MonoTouch application after I've finished working with them? What are the effects of disposing either of them?
Is it safe to dispose any of them if the image is still visible?

Dan Abramov
- 264,556
- 84
- 409
- 511
0
votes
2 answers
CGImageSourceCreateImageAtIndex returns nil
I'm trying to convert a pdf file to an image with this solution :
CFURLRef urlRef = (CFURLRef)[NSURL fileURLWithPath:@"http://uat.okitoo.fr/document/document/s595_506cb1811852f/o_specimen-page-seule.pdf"];
CGImageSourceRef src =…

Sébastien Polytech'
- 316
- 3
- 19
0
votes
3 answers
CGImage rotating when i draw it on CGContext
I have next code which is called every time user touches the screen and modifies the UIBezierPath
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextDrawImage(context, self.bounds, image);
[lineColor setStroke];
[currentPath…

kavalerov
- 390
- 3
- 13
0
votes
1 answer
iOS iPhone CGImage Memory problems
I'm trying to create a visual representation of some data I have.
The function I have works and creates the image perfectly (and VERY quickly) but under instruments the Real Memory usage rockets and eventually crashes the app.
I have replaced my…

Fogmeister
- 76,236
- 42
- 207
- 306
0
votes
2 answers
How to merge the perspective image(3D Transform)?
How to merge these two images(see attached image).I am using the below code. Its working for ordinary images not for 3D transform images. How to handle this issue. I have searched lot of times still not getting the proper result. Please help me.…

Mani
- 1,310
- 1
- 20
- 40
0
votes
1 answer
I have twice as many CGImage objects in instruments than I should have
I have an AssetInfo object which I use to encapsulate basic info about an ALAsset or other asset type that I may have in my app.
An asset info keeps the [alAsset thumbnail] as a CGImageRef. When I am checking in instruments I appear to have twice as…

Jet Basrawi
- 3,185
- 2
- 15
- 14
0
votes
1 answer
CGImageCreateWithImageInRect Static Analyze Warning
I have the following function part of a UIImage Category:
- (UIImage *)copyImageAtRect:(CGRect)rect {
CGImageRef imageToSplit = self.CGImage;
CGImageRef partOfImageAsCG = CGImageCreateWithImageInRect(imageToSplit, rect);
UIImage *image = [UIImage…

Dan H
- 191
- 11
0
votes
0 answers
How to merge two images in iPhone sdk
My app requires to merge 2 images. Please guide me on how to stich the images. The common part should be overwritten. While using openCV framework, merging two image's with the help of cvWarpPerspective(mImage1, warpImage, &HH) I got only the…

Sandroid
- 328
- 1
- 10
- 19
0
votes
1 answer
Leak CGImageMergeXMPPropsWhithLegacyProps
I'm tracking memory leaks on my iOS application and I have a weird leak that makes my application crashed ...
The responsible frame is : CGImageMergeXMPPropsWhithLegacyProps.
At some point my app received a memory warning ...
I'm creating UIImage…

Pierre
- 10,593
- 5
- 50
- 80
0
votes
1 answer
iOS find subimage in a larger image
What is the best way to find coordinates of subimages in a larger image. Subimage is very simple and always the same. For example how do I find coordinates of all black squares in the image below:

andr111
- 2,982
- 11
- 35
- 45
0
votes
1 answer
create CGImage from UIView Subclass
How do I create a CGImage from UIView Subclass?
Should I use renderInContext:UIGraphicsGetCurrentContext() to create a CG image from a view (subclass of UIView) that contains a drawing (core graphics via drawRect method)?
I have an view, myView, in…

OWolf
- 5,012
- 15
- 58
- 93
0
votes
1 answer
how does IOS decode an image(JPEG or PNG) by CGImage ? Is this the most efficient way?
We decode an image(JPEG/PNG) into a bitmap on IOS, generally, by CGImage. Now I want to know whether it's the most efficient way to decode an image ??
Or could anyone tell me that is there any API for us to decode an image by ourselves on IOS ??

Coomy
- 3
- 3