trichview.support
Re: htmlimport and imageresize |
Author |
Message |
Sergey Tkachenko |
Posted: 11/20/2003 19:31:41 Hi (sorry for delay). When you scale TImage object, you do not scale its image: it remains unchanged, but TImage draws it stretched. You cannot return TImage in this event - it requires TGraphic. You you return image of different size, TRVHtmlImporter will resize it to the specified width and height. Resizing TGraphic usually does not mean stretching. Well, I think I need to make some changes to TRVHtmlImport myself, while its authors are busy. Here is updated version: http://www.trichview.com/resources/html/rvhtmlimport.zip It does not modify the original image according to <img width height>, it just instruct RichView to draw it stretched. > Hi, > > i have tried to use the width- and height-Tags on html-import. > When i use the onImageRequired2-Event of TRvHtmlImporter > there is always a blank image after resizing. > > i have tried it with copyrect, create a TImage-Object scaled it and > assigned to dynamiclly created TGraphic-Class. But i get always > a blank image on TRichView. > > How can i do this with TRvHtmlImporter? > > > Best Regards > Johannes Teitge > > |
Powered by ABC Amber Outlook Express Converter