ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 TGraphicClass descendent

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
sandy771 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
4   L A T E S T    R E P L I E S    (Newest First)
sandy771 Posted - Sep 17 2014 : 00:10:11
Thnaks Bill - I'll look at that.
w2m 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 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
xequte 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