Does anyone know how to convert a bitmap to PNG or JPG using Objective-C, assuming I have
CGImageRef imageRef;
UIImage *myImage = [UIImage imageWithCGImage:imageRef]; NSData *pngData = UIImagePNGRepresentation(myImage); NSData *jpgData = UIImageJPEGRepresentation(myImage);
Source: https://habr.com/ru/post/1722963/More articles:Makefiles: получить .cpp из одного каталога и поместить скомпилированный .o в другой каталог - makefilephp5: does a “copy” of the foreach array do overhead? - arraysProgramming iTunes plugins: event hooks - pluginsHow to catch an exception thrown from a library in GCC C ++? - c ++javascript вопрос о наследовании и прототипах - javascriptПлагин формы jQuery + Загрузка файла Ajax + Rails - jquery0-1 without spaces - rHow to enforce the license for the entire site? - .netThe power of two textures - openglОшибка шаблона Web.py: "sum" не существует - pythonAll Articles