Problem with inserting JPG by insertpicture action

ScaleRichView support and discussion (TRichView add-on for WYSIWYG editing)
Post Reply
prosoft
Posts: 24
Joined: Tue Jul 11, 2006 8:51 am

Problem with inserting JPG by insertpicture action

Post by prosoft » Wed Oct 01, 2008 10:35 am

I have ScaleRicgView editor created in runtime. It is simple windows with action toolbar.
When i want to insert image by Insertpicture icon i have a problem with JPG image (all works fine with bitmap ).
I insert jpg image to document. I see image and i save document to stream.
Now i open this document from this stream and there isn't showen picture.
There is link to file with BMP: [good]
http://www.mojedata.cz/down/bmp.rvf

There is link to file with JPG:[bad]
http://www.mojedata.cz/down/jpg.rvf

Thanks Josef

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

Post by Sergey Tkachenko » Wed Oct 01, 2008 2:09 pm

You use thirdparty class TJpegGraphic instead of the standard TJPEGImage.
In order to load RVF file saved with thirdparty graphic classes, all these classes must be registered (one time, before the first loading):
RegisterClass(TJpegGraphic).

Post Reply