image-conversion

Output text as GIF or PNG for use in eBook

BACKGROUND: My goal is to create an eBook that I can read with the Mobipocket reader on my Blackberry. The problem is that my text includes UTF-8 characters which are not supported on the Blackberry, and therefore display as black boxes. The eBook will contain a list of English and Punjabi words for reference, such as: bait ...

Scaling images/icons in Java

A project I am working on needs to be resized when the monitor resolution changes. Due to legacy code and other issues, we do it by using a custom library which scales all the components to the appropriate sizes when the resolution changes. However, when we scale some of the images/icons used in the project, they become blurry/fuzzy/ali...

How does PDF's BitsPerComponent translate to Bits Per Pixel for images?

My goal is to convert a PDF into an image (specifically in TIFF). There is a PDF property called BitsPerComponent And According to description on the page, This property can take the value 1, 2, 4, 8 or 16. Other values are not supported in the PDF Specification Does that mean, 1, 2, 4, 8 or 16 translates to bits per pixel in im...

How to Get UIImage from a 'Base64String' format raw image data, on iPhone?

Hello, In my application, I receive the image data from the server in a XML file. This data is of an image( .jpeg or .png or .tiff etc) which the server, converts into 'Base64String' format bytes to send to my application through the XML file. At my application side, the application stores these bytes, in the form of 'NSData' into a dat...

GDI+ Image Conversion From Metafile to JPEG/GIF Results in Black Background

So i am converting a metafile (EMF to be exact) to a jpeg or gif (doesn't matter as long as it's compatible with browsers) and when I do the conversion, all of the transparent pixels turn black. I have no idea how to do this in GDI+ but here is the method I am using to save the file: Dim Img As System.Drawing.Imaging.Metafile = New Sys...

Read WMF image from SQL Server

I am using a SqlDataReader and I am trying to read from a table I converted from an Access file, and is in SQL Server 2008. The datatype is now a varbinary(max). How do I convert this, so I can have it as System.Drawing.Image? It is a Windows MetaFile and I want to convert it to a PNG or GIF and save it to the filesystem. It appears ...

JPG to PDF Convertor in C#

I would like to convert from JPG to PDF, I've checked out ImageMagickNET, but it is far too complex for what I am after doing, it needs to be simple. Any pointers would be welcomed ...

How to change background color of an eps file while converting it to jpeg or png

I am converting eps (Encapsulated PostScript) files to jpeg files with ghostscript. A sample command I use is: gswin32.exe -sDEVICE=jpeg -dJPEGQ=100 -dNOPAUSE -dBATCH -dSAFER -r600x600 -dGraphicsAlphaBits=4 -dUseCIEColor -dEPSCrop -sOutputFile=”a.jpeg” b.eps The input eps files come with white backgrounds (I only have their clipping...

How do I convert a TIF to PNG in Java?

Under Java what is the best way to go about converting an TIF file to a PNG? Simplicity is preferable, but if the simplest way is to use a third party library then I would consider that solution. ...

Easy way to translate a Bitmap & Png to text AND BACK AGAIN in C#

what is the easiest way to translate a Bitmap & Png to string AND BACK AGAIN. Ive been trying to do some saves through memory streams and such but i cant seem to get it to work! Appearently i wasnt clear, what i want, is to be able to translate a Bitmap class, with an image in it.. into a system string. from there i want to be able to ...

Image Conversion from Bitmap to Icon doesn't seem to work

I have a simple function that takes a bitmap, and converts the bitmap to an ICON format. Below is the function. (I placed literal values in place of the variables) Bitmap tempBmp = new Bitmap(@"C:\temp\mypicture.jpeg"); Bitmap bmp = new Bitmap(tempBmp, 16, 16); bmp.Save("@C:\temp\mypicture2.ico", ImageFormat.Icon) It doe...

Is using the .NET Image Conversion enough?

I've seen a lot of people try to code their own image conversion techniques. It often seems to be very complicated, and ends up using GDI+ function calls, and manipulating bits of the image. This has got me wondering if I am missing something in the simplicity of .NET's image conversion call when saving an image. Here's the code I hav...

File Format Conversion to TIFF. Some issues???

I'm having a proprietary image format SNG( a proprietary format) which is having a countinous array of Image data along with Image meta information in seperate HDR file. Now I need to convert this SNG format to a Standard TIFF 6.0 Format. So I studied the TIFF format i.e. about its Header, Image File Directories( IFD's) and Stripped Ima...

Is there any image converter through which I connect with java?

Hey guys, I asked one question here but I didn't get exactly what I wanted. So, now because of the unsupported image problem in ImageIO, I thought why don't I try another way to use it, by converting Unsupported images. So, is there any open-source image converter in Java or is there any website or tool, through which I can connect wit...

How to convert 32-bit RGBA Image to Grayscale preserving alpha

I'd like to, in code and on demand, convert a 32-bit RGBA Image object (originally a 32-bit PNG) to its 32-bit grayscale counterpart. I've already read several other questions here, as well as many articles online. I've tried using ColorMatrix to do it, but it doesn't seem to handle the alpha very well. Pixels that are entirely opaque...

Convert PDF File to Image - VB/C#

Hello, Was just wondering if anyone's written or come across a PDF to Image Conversion App! If so, I need some guidelines or preferably, code. I tried using some cheap s/w's but they all were turned out to be unreliable. FYI: I need to process a large set of PDF Files (~5-10 K) and convert usually 1-2 Pages of it to an Image Format. ...

.cur Image Converting Software

I have an transparent .PNG image that I need to convert into an .CUR file. Does anyone know of good online software for converting .CUR or free-inexpensive downloadable softare? Thanks in advance! ...

How to convert an image file to BMP programmatically using native Windows XP capabilities?

Is it possible to convert an image file to BMP format using WindowsXP's native libraries and scripting capabilities? I'm talking about WSH, JScript, VBS, etc... C++ is also good for what I need if it can be compiled with Dev-C++ ...

Converting .dds to .png: is XNA really this convoluted?

I have a .dds file and I want a .png file. Although I already found out about the DevIL.NET library, the API design there of one static class does not parallelize, so I am hoping to find another method. This led me to XNA. But, here's how far I got with that idea... OK, it looks like I want this Texture2D class; then I can call myText...

converting image extension

Hi need help creating a script to convert the extension of a tif image to a .png and removing the original from the file. This is what I have. @echo off image1.tif >> image1.png when it run it show it as a .png but with a blank image. Still haven't figure out how to remove the original one from the folder. ...