Questions tagged [cgbitmapcontextcreate]

Creates a bitmap graphics context (drawing destination) in Apple's Core Graphics framework.

The Core Graphics framework is often referred to as "CG"

See Apple's CGBitmap reference for more specific information, or The Graphics Contexts section of Apple's Quartz 2D Programming Guide for background information.

67 questions
0
votes
1 answer

CGBitmapContextCreate bitsPerComponent for RBG565

I'm trying to create a CGContextRef using CGBitmapContextCreate. The bitmap I want to create is RBG565 (red and blue are 5 bits, green is 6 bits). One of the parameters for CGBitmapContextCreate is bitsPerComponent. Since I have variable…
yeesterbunny
  • 1,847
  • 2
  • 13
  • 17
0
votes
2 answers

iPhone - Multiple CGBitmapContextCreateImage Calls - ObjectAlloc climbing

Has anyone else come across this problem? ObjectAlloc climbs as a result of the CGBitmapContextCreateImage. Does Apple's software not fully releasing the objectalloc? I am resizing images 12 times a second with a NSTimer. During resizing of the…
bbullis21
  • 741
  • 3
  • 9
  • 21
0
votes
1 answer

iPhone - UIImage Leak, ObjectAlloc Building

Alright I am having a world of difficulty tracking down this memory leak. When running this script I do not see any memory leaking, but my objectalloc is climbing. Instruments points to CGBitmapContextCreateImage > create_bitmap_data_provider >…
bbullis21
  • 741
  • 3
  • 9
  • 21
0
votes
1 answer

CGBitmapContextGetData - can't copy data to the returned block of memory

I am drawing RGBA data onto the screen using CGBitmapContextCreate and CGContextDrawImage. When I try to create bitmapcontext using CGBitmapContextCreate(pixelBuffer,...) where I have alreadymalloc'ed pixelBuffer and placed my data there, this works…
R.S
  • 321
  • 3
  • 15
0
votes
1 answer

How to set an image to fill in full view?

i am using below code for fill rgba forful view. but i am getting half(1/2) width only. anybody please inform me anything wrong with my code. CGContextRef bitmap = CGBitmapContextCreate( …
sreenivas
  • 399
  • 2
  • 5
  • 20
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
2 answers

Iphone Pixel RGBA value editing

My goal is as follows. When The player touches the screen the program should find out the values of the pixel at that location of touch and then loop through every pixel and any that are of the exact same RGBA values will be edited, at the moment i…
Genhain
  • 1,937
  • 1
  • 19
  • 38
1 2 3 4
5