the size of save files in too big

ScaleRichView support and discussion (TRichView add-on for WYSIWYG editing)
resilux
Posts: 17
Joined: Tue Apr 27, 2010 2:06 pm

Post by resilux »

Yes please, can you provide me an example in Delphi of how to convert images in document to JPEG.

Regards
Sergey Tkachenko
Site Admin
Posts: 17253
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

I updated that topic: http://www.trichview.com/forums/viewtop ... 6749#26749

For converting only metafiles, you can add below

Code: Select all

if gr is TJPEGImage then 
      exit; 
the following code:

Code: Select all

if not (gr is TMetafile) then 
  exit; 
Note: when running in Delphi, this code generates exception when attempting to assign TMetafile to TBitmap. But these exceptions are in try..catch, so the code runs correctly.

Now you have access to protected forums, see the protected Announcements forum for new releases.
resilux
Posts: 17
Joined: Tue Apr 27, 2010 2:06 pm

Post by resilux »

Thanks Works fine....

I will keep one eye on private fórums for next update.

Regards
Post Reply