Author |
Topic |
|
sandy771
57 Posts |
Posted - Sep 16 2014 : 01:56:05
|
I am using a third party control that has very limited support for graphics handling and I want to use ImageEn to extend the graphics formats it can display.
The control provides a feature to register a descendant of TGraphicClass.
Is ImageEn a descendant of TGraphicClass, can I use it as a plugin in this way?
Thanks |
|
xequte
38127 Posts |
Posted - Sep 16 2014 : 02:49:40
|
Hi
No, ImageEn controls do not descend from TGraphicClass. What is the control you are using?
Nigel Xequte Software www.xequte.com nigel@xequte.com
|
|
|
sandy771
57 Posts |
Posted - Sep 16 2014 : 02:53:14
|
Thanks Nigel
It's the Developer Express cxGrid
Although it supports some graphics (within a database stored as blobs) - I have a particular db that for some reason has a 0x00 byte before the jpeg header. I have no control over the schema of content of the databases I need to provide a solution for :( ImageEn displays this image happily, but I need to look at it within the grid.
Thanks Paul
|
|
|
w2m
USA
1990 Posts |
Posted - Sep 16 2014 : 06:46:22
|
Maybe if you call hyieutils.IERegisterFormats in OnFormCreate and call hyieutils.IEUnRegisterFormats in OnFormDestroy it will work. Register/unregister following classes inside the VCL class framework. This allows use of standard VCL open/save dialogs and TPicture objects with ImageEn file formats.
TIETiffImage, TIEGifImage, TIEJpegImage, TIEPCXImage, TIEBMPImage, TIEICOImage, TIEPNGImage, TIETGAImage, TIEPXMImage, TIEJP2Image, TIEJ2Kimage
Each of above classes inherits from TIEGraphicBase.
Then maybe you can register the classes with cxGrid.
This works with TOpenPictureDialog so you can set the TOpenPictureDialog filter: TOpenPictureDialog.Filter := GraphicFilter(TGraphic);
The TOpenPictureDialog.Filter has no effect on what you are trying to do, but it shows that ImageEn FileTypes can be used as a TGraphicclass, thus providing IO with ImageEn file types.
Bill Miller Adirondack Software & Graphics Email: w2m@hughes.net EBook: http://www.imageen.com/ebook/ Custom Commercial ImageEn Development |
|
|
sandy771
57 Posts |
Posted - Sep 17 2014 : 00:10:11
|
Thnaks Bill - I'll look at that. |
|
|
|
Topic |
|
|
|