Im a newbie programmer in Delphi. I need help, I have a small project which I need to display all kind of image format.
Please suggest what should I do or any component in delphi that support all image format? thanks for the help in advance.
Have a look at the GraphicEx library available from www.soft-gems.net. This should give you most (if not all) of the formats you want.
I found a Library that suites my need. It called vampyre library and works amazing. It support TIFF,tif, animating gif and many more
You can use several image types with the standard TImage component. At least bmp and jpg (if you use the Jpeg unit).
Version 2009 added some more. Image formats (I thought at least png and wmf).
There are a lot of third party components for image display/processing. A google search will show them all.
GraphicEx should be a good start. It's free and contains the most used formats.
Both ImageEn and Imaging Toolkit for Delphi offer wide range of supported format
and you can find more in torry site
Related
I see from this discussion, and the Nick Hodges blog, that the TPngImage has been rolled into Delphi. That's great and all, but we've got a project that's stuck in D2005 and we need to do a simple conversion from PNG to BMP. Is there anywhere that we can get the legitimate source for this? I do not want to run afoul of Embarcadero's licensing, but I DO want to pave the way for a smooth transition to DelphiXE2 (or 3, or 9, who knows when we'll actually convert?). Suggestions? Thanks.
The original version of the TPNGImage from Gustavo Daud is available in the torry's site http://www.torry.net/authorsmore.php?id=6929
You may also consider using the GR32 PNG library. https://sourceforge.net/projects/gr32pnglibrary/
It is a PNG library for reading and writing of PNG images in combination with a TBitmap32 class from the GR32 library.
I'm using Delphi.
I want to know how to extract (all) the icons from an exe file and insert them into another, preserving the order and the index of the icons.
I found some samples of Delphi code using Google but the problem is that it doesn't extract them all.
And I've found some compiled programs (exes) that do one or the other but not both.
Why do I need this: because I have to start some exe files (that have those icons) from virtualized applications. And I want to make some external exe files that have the same name and the same icons.
Thank you for your help.
The source is available for Colin Wilson's XN Resource Editor. It should have what you need.
http://www.wilsonc.demon.co.uk/d10resourceeditor.htm
Alternatively you have the Delphi sample 'ResXplor'. If it's not distributed in your version it's also avalaible to download here: http://radstudiodemos.svn.sourceforge.net/viewvc/radstudiodemos/branches/RadStudio_XE/Delphi/VCL/resXplor/
There was a similar question about extracting icons. PrivateExtractIcons gives you access to specific image sizes in an icon resource, but you need to know the sizes ahead of time, and Microsoft warns that this method is not for general use.
There is a working example of extracting the entire icon resource with all of the image sizes on Delphi Praxis. The example has a problem with 256 pixel images, so it would have to be tweaked to account for these.
I am using Delphi 7 and the OpenPictureDialog to open / preview various images. This works fine when opening a bmp, jpg, etc.; however, if I try to do the same with a gif I get the following error. Anyone got any idea why or have a fix for it?
thanks
Colin
Use this TGIFImage. This is the original unit which was donated to CodeGear in 2006. It supports Delphi7.
copy GifImage.pas to your project path (from gifimaged2010b.zip) ,
and add to your uses list ;
thats all
It will automatically add GIF in filters for openpicturedialog (**)
Just use the GraphicEx library by Mike Lischke. Just add a couple files to your uses list and your application natively supports GIF, TIFF, PNG and many many others. The standard TImage will work with them and also the TPictureDialog (along with all others standard components that use TGraphic - take note that some features will only work at runtime).
If you use our free syngdiplus unit, you'll get GIF, JPEG and TIFF image support at once, by using the gdiplus library, available on every Windows since Windows XP. It supports loading and saving pictures, and the preview in TPictureDialog. And your exe size with increase much less than with GraphicEx or TGifImage.
Works from Delphi 6 up to Delphi XE.
And you'll be able to draw any TCanvas with anti-aliaising.
See http://synopse.info/forum/viewforum.php?id=4
Delphi 7 simply doesn't support GIF images. This has led to a number of third-party components for reading GIF files. However, as of Delphi 2006 (IIRC), the RTL/VCL can read GIF files as well. Just include GifImg in the uses clause. (In fact, as of Delphi 2009, the RTL/VCL can also read PNG files. And then there is really no need for GIF support, because the PNG file format is superior in almost every way. The only thing supported by GIF that is not supported by PNG is (low-quality(1)) animations.)
(1) GIF only supports 256 colours.
what is the easiest method to convert a PDF into a TBitmap image in delphi?
if there are any commercial available tools for delphi, I can buy one if it is reliable and or not expensive...
I am thinking of some kind of viewer which I can browse pages.. zoom... and export in the desired resolution..
I have had good results with QuickPDF. It's relatively inexpensive and there is a trial version available.
You could try using the ghostscript api from delphi (see http://ftp.uasw.edu/pub/ghostscript/contrib/ for delphi example files) to convert to a bitmap.
Though I've not used it (was just aware of its existence) I would expect you should be able to put the data into a memory stream and read it from there.
Though, if your software is going to be non-open source it could be an issue .
I have 4 small tiff images and I would like to generate a big one by merging the 4 single one. Does anyone know how to do it directly with Delphi or some good component that could do it?
You could use GraphicEx by Mike Lischke to load the Tiff images:
http://www.soft-gems.net/index.php?option=com_content&task=view&id=13&Itemid=33
ImageMagick is a command line application that can do such kind of operations on different image file formats including tiff.
The API seems to be usable from Delphi, see PascalMagick.
Another excellent graphics library for Delphi is Graphics32
Edit: As Vegar said, it looks that Graphics32 cannot be used to load TIFF format.
Another library you can use is FreeImage. It supports loading and writing of TIFF files. Beware: the Delphi wrapper is not actively maintained, but it works. We use it in our software to display previews of images.
ImageEn one of the best Image libraries for Delphi, and it's native VCL ;-)