I am trying to save an image from a tForm as a BMP file and a JPG file, using SaveToFile. When I import the image file into a Word document the apparent sizes in the document are substantially different.
I am using:
- Lazarus Version 1.4.0
- FPV Version 2.6.4
- SVN Revision: 48774
- i386-win32
In a new project I placed a tImage sized to 96 pixels in height and width, and two tButtons - one to draw a box, and the other one to create two files from the single tImage, a BMP file and a JPG file both using SaveToFile. The tImage was sized to 96 pixels to produce a inch square box (Windows reported the display resolution as 96 DPI).
Both files appears the same in Paint or Windows Photo Viewer. The BMP file contains "BM" as the first two characters, and the JPG file contains "JFIF" characters, and the file lengths are difference sizes.
Windows Explorer shows both files as 96 x 96 pixels, but in Word - right-click on the BMP - Format Picture - Size shows the Original Size ss 37.8 inches and is scaled to 17% but the JPG file Original Size is 1 inch and scaled at 100% (See attachment.)
The software for the two tButton OnClick events is also attached.
Apparently I missed setting a property. Does anyone have a suggestion.
Thanks in advance.