I have the following code to create a new bitmap graphics context. The newRect.size.width is the result of dividing the original width of UIImage b ...
I have the following code to create a new bitmap graphics context. The newRect.size.width is the result of dividing the original width of UIImage b ...
I'm trying to create a blank bitmap in a Xamarin.iOS project using the CGBitmapContext constructor(s). However, no matter what I try I just get the er ...
I have been using the code from here to add some text to my UIImage, however the quality on the image gets really bad. I have narrowed down the code a ...
I am trying to create an image mask with kCGColorSpaceDisplayP3 colorspace to support the iPhone 7's wide color range. I am able to create image mas ...
I have this Objective-C code that takes out the opaque background of a filter. I am trying to convert it to latest Swift and having errors all over th ...
I am drawing text on top of a solid background color, and while it is appearing, the NSTextEffectLetterpressStyle effect applied to the attributed str ...
I want to resize a bitmap for a project that I am doing. I managed to do this by converting the cgbitmapcontextref to a pixel array and then manipulat ...
I am trying to create a CGContext in swift. It compiles but throws an error at runtime. And the error is: ...
I have an app that needs to render frames from a video/movie into a CGBitmapContext with an arbitrary CGAffineTransform. I'd like it to have a decent ...
I am trying to create a snapshot of a UICollectionViewCell by creating a CGBitMapContext. I am not entirely clear on how to do this or how to use the ...
I want to allow the user to select a photo, without limiting the size, and then edit it. My idea is to create a thumbnail of the large photo with the ...
I have manually created a CGBitmapContext: And drawing a layer to it: However, on Retina my layer renders only at half the original size. Sett ...
This is how I create a UIImage. I allocated piOutData with calloc. Now when I call CGImageRelease at the end, will it automatically release piOutData ...
I'm new to MonoTouch and I've recently been converting code from standard C# to MonoTouch compliant code so it can be used within an iPhone applicatio ...
Is there an option to the CGBitmapContext or Quartz 2D? I want to use it for drawing on an UIImage in monotouch. thanks Alex. ...
I've got a problem with the CGBitmapcontext. I get en error while creating the CGBitmapContext with the message "invalid Handle". Here is my code: ...
Objective-C Answers are fine, I am using MonoTouch for reference. I am writing text on top of a UIImage. Retina displays the font in a choppy way. Lo ...
I have an unsigned char* data with the following values, as seen while debugging in xcode, \xc1\xc1\xc1\xc1\xc1\xc1\xc1\xc0\x84\x03\x03\x02\x03\x02\ ...
To retrieve pixel values from CGImage I use CGContextDrawImage (like described here: How to get pixel data from a UIImage (Cocoa Touch) or CGImage (Co ...
So I am using CGBitmapContext to adapt a software blitter to iOS. I write my data to the bitmap, then I use CoreGraphics functions to write text over ...