I want to reduce the number of bytes captured by a device, because I believe _imageScaledToSize
does not reduce the number of bytes of the image (or what is it?) - I want to store a thumbnail of the image in a local dictionary object and can not put full size images in the dictionary. Any ideas?
If you want to shorten your UIImage, you can use
Code> NSDTA * DataForPNGFile = UIMAGGNG Presentation (your image);
An NSDT version of your image is encoded as a PNG (easily written on an NSDictionary or disk), or you
Use NSData * DataForPNG File = UIImageJPEG Representation (Your Image, 0.9F);
To do this, the second parameter in JPEG format is the image quality of JPEG. These two should create small, memorable, images compared to their UIImage.
To make a small thumbnail (pixel-wise) using published methods, it is a bit easier to change UIImage with the _imageScaledToSize Private API, and I highly recommend that you do not use it. . Look for ways to work within the document methods.
Comments
Post a Comment