Is there a way to get NSData in TIFF representation from UIImage instance, just the way you can get PNG and JPEG representations using UIImage.AsPNG() and UIImage.AsJPEG() methods respectively?
Thanks
iOS doesn't have a native TIFF library. You could try
using a third party service
find an open source C# library and port it
find a obj-c library and bind it
See this question for info about a Obj-C port of ImageMagick.
Related
I want to design an image filter app. I've searched a lot but found nothing on how to pass java bitmap to c/c++ and then retrieve at native side and apply a basic image filter and return the result to java again to display it on ImageView. Any help is appreciated
Check the NDK Bitmap plasma sample, it shows how to do exactly that.
https://github.com/googlesamples/android-ndk/tree/master/bitmap-plasma
I am working on converting an SVG to a PDf document.Is there any module in node.js that helps with this.
I have found https://www.npmjs.com/package/librsvg
But I am having issues setting it up.Is there any module which is simpler to setup?
Is there any other way to convert to pdf via node.js. I already have SVG converted to png.All I need is to convert it to PDF
I installed Xamarin studio and trying to use System.Drawing frame work but it is not working. The reason I want this framework is to be able to define a Bitmap object. This bitmap object is assigned to a qr code image. Can anyone help me on how i can assigned an image to bitmap since i can not use bitmap in xamarin studio framework.
What i wanna do is as follows:
//create a qr code
QRCodeEncoder encoder = new QRCodeEncoder();
// Assign a bitmap image to the encoder since the encoder.encode returns bitmap image
Bitmap img = encoder.Encode("http://www.monkeywow.com");
// save the image in to images folder
img.save("www.monkeywow.com/images/imp.jpg", ImageFormat.jpg);
The problem is I can not use Bitmap img since i can not import System.Drawing into Xamarin.
I tried that and did not work. Since the encoder returns bitmap, i do not know how to obtain the image so i can save it where ever i want.
To display an image on screen, use UIImage. For working with low level bitmaps, use the CoreImage framework.
http://docs.xamarin.com/guides/ios/application_fundamentals/working_with_images/
http://docs.xamarin.com/recipes/ios/media/coreimage/
Xamarin.iOS includes a few System.Drawing types, e.g. Rectangle[F], Point[F] and Size[F], inside monotouch.dll to ease code sharing between (cross platform) projects.
However the System.Drawing.dll assembly itself is not part of the mobile profile that ships with Xamarin.iOS.
Like #Jason mentioned are several, native, ways you can do graphics on iOS (OpenGL would be another one).
Another option is to use the code from https://github.com/mono/sysdrawing-coregraphics which offers a partial System.Drawing API on top of CoreGraphics.
I'm doing ico converter to png online. Example : user key in http://www.google.com.my/favicon.ico. I will able to convert .ico into png and send back the image. I'm using nodejs as server to convert it.
How to do the convert at nodejs ?
There is an Imagemagick module you may find useful:
https://github.com/rsms/node-imagemagick
I am using Raphael to create a dynamic visualization. Is it possible to allow the image generated on the Canvas to be downloaded as a SVG/PDF or another image format?
There are pieces of information missing here, namely browser support, server-/client-side solution and whether costs are okay or not. So I'll try to give you an exhaustive answer.
For a client-side solution, you can use DocRaptor. Just feed the SVG tree to DocRaptor This works for the SVG-producing browsers (all since 2005 except for IE prior to version 9). Note that DocRaptor has a fee for converting documents into PDF. For a free server-side solution for converting an SVG tree to a PDF, I would suggest using wkhtmltopdf as proposed in this answer.
For IE6-8, which Raphaƫl produces VML for, you could create a PHP solution using the Vector Converter library. When the conversion from VML to SVG is finished, sent the SVG to DocRaptor (or wkhtmltopdf).
There is no free client-side VML/SVG -> PDF solution that works for VML or SVG. To build that would mean interpreting SVG and/or VML, creating a PDF from it using JavaScript (there are JS PDF library attempts), and sending it to the client using some Flash technique. I guess nobody has attempted to build that yet. I might.
pdfkit seems to be the way to go, with using browserify to make the node code run client side. There is a nice demo here
You can save as an image using canvg and canvas2image libraries
http://code.google.com/p/canvg/
http://www.nihilogic.dk/labs/canvas2image/