Delphi 2007下安装GraphicEx组件

GraphicEx只提供了pas源程序,在D6/D7时,可以直接利用Component-Install Component菜单导入,可是在Delphi 2007下没有了这个菜单。查了CodeGear的这篇文档:How to import Delphi win 32 component *.pas file in Delphi 2005后,按步骤成功的添加了GraphicEx组件。

1、在Delphi 2007里新建一个Package(for Win32)并保存,注意保存时文件名不能同添加的pas文件名相同,否则安装时会出现递归调用错误。
2、添加GraphicEx.pas、GraphicColor.pas、GraphicCompression.pas、GraphicStrings.pas、JPG.pas、MZLib.pas等文件。
3、Build这个Package,应该是通过的。
4、在Project Manage里刚建立的.bpl上点右键选择Install就可以成功安装GraphicEx组件了,新建一工程,添加Image组件,在调入图像的窗体上可以看到支持的格式多了许多。

 

GraphicEx is an addendum to Delphi's Graphics.pas in order to enable your application to load many common image formats. This library is primarily designed to load images as background (buttons, forms, toolbars) and textures (DirectX, OpenGL) or for image browsing and editing purposes as long as you don't need to save images. Currently only TTargaGraphic also supports saving an image. GraphicEx is open source under the Mozilla Public License (MPL). Please read the license agreement before you start using this library. TIFF images (*.tif; *.tiff), extended base line implementation byte orders: little endian, big endian sample sizes: 1, 2, 4, 8, 16 bits per sample color spaces: indexed, grayscale, RGB(A), CMYK, L*a*b* compression formats: uncompressed, packed bits, LZW, CCITT T.4 (raw and modified fax group 3, possibly word aligned), ThunderScan, Deflate, new style JPEG GFI fax images (*.fax), uses TTIFFGraphic to read sample size: 1 bits per sample color space: indexed compression format: CCITT T.4 (raw and modified fax group 3) SGI images (*.bw, *.rgb, *.rgba, *.sgi) byte order: big endian sample sizes: 1, 2, 4, 8, 16 bits per sample color spaces: indexed, grayscale, RGB(A) compression formats: uncompressed, RLE Autodesk images files (*.cel; *.pic) old style only byte order: little endian sample size: 8 bits per sample color spaces: indexed compression format: uncompressed Truevision images (*.tga; *.vst; *.icb; *.vda; *.win), write support included byte order: little endian sample sizes: 5, 8 bits per sample color spaces: gray scale, indexed, 15 bits RGB (555), 24 bits RGB(A)(888) compression formats: uncompressed, RLE ZSoft Paintbrush images (*.pcx, *.pcc) byte order: little endian sample sizes: 1, 2, 4, 8 bits per sample color spaces: gray scale, indexed, RGB compression formats: uncompressed, RLE Word 5.x screen capture files (*.scr) byte order: little endian sample sizes: 1, 2, 4, 8 bits per sample color spaces: indexed, gray scaleRGB compression formats: uncompressed, RLE Kodak Photo-CD images (*.pcd) byte order: little endian samples size: 8 bits per sample color space: YCbCr compression: PCD Huffmann specials: sizes: all resolutions, from 192 x 128 up to 6144 x 4096 (64 Base vaporware) rotated: clockwise and counter-clockwise Portable pixel/gray map images (*.ppm, *.pgm, *.pbm) byte order: little endian sample sizes: 1, 8 bits per sample color spaces: gray scale, indexed, RGB compression format: uncompressed specials: ASCII and Binary format Dr. Halo images (*.cut, *.pal) byte order: little endian sample size: 8 bits per sample color spaces: indexed compression formats: RLE special: external palette file (*.pal) is automatically loaded when specified while doing LoadFromStream or when loading the image via LoadFromFile CompuServe images (*.gif) byte order: little endian sample sizes: 1, 4, 8 bits per sample color spaces: indexed compression format: LZW special: interlaced, non-interlaced SGI Wavefront images (*.rla, *.rpf) byte order: big endian sample size: 8 bits per sample color space: RGB(A) compression formats: RLE Standard Windows bitmap images (*.bmp, *.rle, *.dib), these formats are natively supported by Delphi's VCL but *.rle and *.dib files are not registered with TPicture by default byte order: little endian sample sizes: 1, 4, 8 bits per sample color spaces: indexed, RGB(A) compression formats: uncompressed, RLE specials: OS/2 bitmap format Photoshop images (*.psd, *.pdd) byte order: big endian sample sizes: 1, 8, 16 bits per sample color spaces: indexed, RGB, CMYK, CIE L*a*b* compression formats: uncompressed, packed bits special: duo tone Paintshop Pro images (*.psp) byte order: little endian sample sizes: 1, 4, 8 bits per sample color spaces: indexed, gray scale, RGB compression formats: uncompressed, LZ77 Portable network graphic images (*.png) byte order: big endian sample sizes: 1, 2, 4, 8, 16 bits per sample color spaces: indexed, grayscale (alpha), RGB(A) compression format: LZ77 specials: supported chunks: IHDR, IDAT, IEND, PLTE, gAMA, tRNS, bKGD transparency support partially for RGB, which is stored as 32 bits format
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值