Page 1 of 1

Problem with inserting JPG by insertpicture action

Posted: Wed Oct 01, 2008 10:35 am
by prosoft
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

Posted: Wed Oct 01, 2008 2:09 pm
by Sergey Tkachenko
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).