trichview.com

trichview.support




Re: OnSaveImage2


Return to index


Author

Message

Sergey Tkachenko

Posted: 05/21/2004 23:53:52


You can register any graphic class with RV_RegisterHTMLGraphicFormat.

For example, if you write

RV_RegisterHTMLGraphicFormat(TBitmap),

all bitmaps will be saved in BMP files without converting to Jpegs.


The function

GraphicExtension(TGraphicClass(gr.ClassType))

returns file extension for the gr.


This function works if the file extension is registered for the class of gr

(TPicture.RegisterFileFormat).

Extensions are already registered for all standard graphic classes (and some

thirdparty classes register them too)


>

> When TRichView Save an Image whit SaveHTMLToStreamEx the event

OnSaveImage2

> and OnHTMLSaveImage are activate.

>

> I have the name of image but I don't have the extention (.gif or .jpg) How

> I know the extention?

>

> If I use "RV_RegisterHTMLGraphicFormat(TGifImage); " to mantein the gif

files

> whit his properties but other picture save as a jpg file. In this case I

> don't Know the images extention.

>

> Thakns

>

> Andres Rubio





Powered by ABC Amber Outlook Express Converter