Questions tagged [cgimageref]

The CGImageRef opaque type represents bitmap images and bitmap image masks, based on sample data supplied. This is part of the Core Graphics framework.

The CGImageRef opaque type represents bitmap images and bitmap image masks, based on sample data supplied. A bitmap (or sampled) image is a rectangular array of pixels, with each pixel representing a single sample or data point in a source image. This is part of the Core Graphics framework.

See and as well.

151 questions
0
votes
1 answer

How to flip a CGImageRef over y-axis

I'm trying to animate a sprite using only CoreAnimation. It's working so far except I can't figure out how to flip the sprite sheet. Right now, I have a walking animation, but I want the sprite to face the direction it's walking (because it looks…
corgichu
  • 2,580
  • 3
  • 32
  • 46
0
votes
1 answer

app crashing if I am doing CGImageRelease(sourceImageRef),objective C

My first post is at here to look for the reason why my app is crashing. After almost 3 hours to detect and now I can find out where the leak is. First of all, what I am doing is after downloading an image using AFNetworking, I will be setting the…
tranvutuan
  • 6,089
  • 8
  • 47
  • 83
0
votes
1 answer

CGImageRef | Memory Consumption | Leak

I need to capture the desktop image and process its RGB Data, i am using Quartz API to do the same, The problem what i am facing is, high mem usage, please refer the function , Edit here, This function is getting called through pThread ;…
Amitg2k12
  • 3,765
  • 10
  • 48
  • 97
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
2 answers

iphone development: when I analyze my app I have potential leak issue

When I analyze my iPhone app I have a blue arrow warning which says: potential leak of an object stored into pauseImgBg I simply crop a partial image from an atlas and put it into the pauseMenuIV imageView. CGImageRef pauseImgBg =…
death7eater
  • 1,094
  • 2
  • 14
  • 35
0
votes
2 answers

Memory Management for CGImageCreateWithImageInRect used for CAKeyFramAnimation

I'm using CAKeyFrameAnimation to animate few png images. I cut them from one png image by using CGImageCreateWithImageInRect When I run Analyze function in XCode it shows me potential memory leaks. They are beause of CGImageCreateWithImageInRect.…
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
1 answer

CGImageRef change

there. How can I chage CGImageRef from another ViewController? I have this code: #import "ScratchableView.h" @implementation ScratchableView - (id)initWithFrame:(CGRect)frame { self = [super initWithFrame:frame]; if (self) { //init…
user1625435
  • 153
  • 8
0
votes
1 answer

Save pixels dynamically created and retrieve it back successfully

I am trying to insert pixels dynamically to a PNG image file and try to retrieve it back without any alteration to pixels I saved using the code below. But I'm not successful in doing so. Can someone help me point where the problem is? Thanks. //…
A 1
  • 1
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
0 answers

CGImageCreate making noise towards bottom of the image Objective C

I'm using CGImageCreate to create an image from a byte buffer (of uint8_t). The image seems to get noise towards the bottom though. Is there an alternate way to do this or am I doing something wrong using CGImageCreate?
0
votes
2 answers

CGImageCreate Gives Completly black or no Image or crashes

I have been for some time now attempting to do the following, player taps screen get the values of the pixel the player has tapped Loop through image to find out which pixels are the same Make all pixels with the same values have an alpha of 0…
Genhain
  • 1,937
  • 1
  • 19
  • 38
0
votes
1 answer

NSInvalidArgument error - CGImageRef from CIImage

I'm getting an error on some code that two days ago was running fine. The error is: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFType extent]: unrecognized selector sent to instance 0x1bc8f0' it…
mrEmpty
  • 841
  • 4
  • 19
  • 36
-1
votes
1 answer

OpenCV IplImage to CGImageRef

Im using OpenCV for iOS in a OS X project, and everything has set up fine so far. Im looking to read in frames from a video file, but I need them to be of type CGImageRef, not the IplImage like they are when I read them. My question is simple: How…
Adam Schiavone
  • 2,412
  • 3
  • 32
  • 65
-3
votes
1 answer

how to share CGImageRef to facebook using social library?

This is the method that have the image data, that image will than write to camera roll CGImageRef cgImageResult = [self newSquareOverlayedImageForFeatures:features …
MNOman
  • 3
  • 3
1 2 3
10
11