ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder
ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 TGraphicClass descendent
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  


54 Posts

Posted - Sep 16 2014 :  01:56:05  Show Profile  Reply
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?



5055 Posts

Posted - Sep 16 2014 :  02:49:40  Show Profile  Reply

No, ImageEn controls do not descend from TGraphicClass. What is the control you are using?

Xequte Software
Go to Top of Page


54 Posts

Posted - Sep 16 2014 :  02:53:14  Show Profile  Reply
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.

Go to Top of Page


1990 Posts

Posted - Sep 16 2014 :  06:46:22  Show Profile  Reply
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
Custom Commercial ImageEn Development
Go to Top of Page


54 Posts

Posted - Sep 17 2014 :  00:10:11  Show Profile  Reply
Thnaks Bill - I'll look at that.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To: