Page 1 of 1

A problem saving linecolors ( new image ) with xImage

Posted: Tue Sep 24, 2019 9:47 am
by ukoenig
Hello,

I noticed a problem using xImage < save and paste >
painting on a image and past as a new image from clipboard, the pen-color gets lost
using past in any other programs like word it works.
I think nobody did any paintings on a image before to see the result.

paintings inside the original

Image

The result with white lines :(

Image

paste in word or any other program like pixelformer works :D

Image

Image

it seems to be something wrong in

METHOD Save( lAsViewed, cFile, nQuality )
METHOD Paste()


regards
Uwe :?:

Re: A problem using xImage METHOD < Save and Paste >

Posted: Wed Sep 25, 2019 3:06 pm
by nageswaragunupudi
1) Try "SaveAsViewed" and save as bmp file.
2) Can you post your code how are you drawing on the image?

Re: A problem using xImage METHOD < Save and Paste >

Posted: Wed Sep 25, 2019 7:22 pm
by ukoenig
I used it otherwise the painting is not included
1) Try "SaveAsViewed" and save as bmp file.
The same usage but with a quality-difference

// xImage
DEFINE BUTTON OF oDlg:oBar PROMPT "Save xImage" CENTER ;
ACTION ( oImage1:Save( .T., c_path1 + "EXPORT\" + "SAVED1.JPG", 100 ), ;
MsgInfo( "saved as saved1.jpg" ) )

// TImage
DEFINE BUTTON OF oDlg:oBar PROMPT "Save Image" CENTER ;
ACTION ( oImage2:SaveImage( c_path1 + "EXPORT\" + "SAVED2.JPG", 2, 100 ), ;
MsgInfo( "saved as saved2.jpg" ) )

With the test it is possible to save with Timage or xImage
the EXE and PRG is included

usage :
1. with mouse-dblclick activate drawing
2. with mouse-dblclick stop drawing
3. after finish drawing select < new from clipboard >
using this button Your drawing is saved to the clipboard
and painted inside a new dialog.
4. next You can save the image with xImage or TImage
5. View the saved image with < show image-export >.

Download
http://www.pflegeplus.com/DOWNLOADS/XIMG2.zip

Image

combination
You can switch between free draw and line from x to y
a line startposition is auto-connected to the end-position of free draw.

Image

loaded from clipboard

Image

save-results

1. save with xImage
2. show saved file ( white lines )

3. save with TImage
4. show saved file ( OK )

Image

regards
Uwe :?: