Saving and printing a picture

i started a conversation at “Updating SaveAsPicture” but a number of people got into a lengthy discussion on printing so my last question got lost.

i want to create a picture that will not appear on the screen and print and/or save that picture. Axel Schneider suggested the following to copy a picture on the screen but i don’t want to save or print what is on the screen. i want to save what is on the screen plus some text that i will add for explanation but not display on the screen

main.CanvasDD(4).DrawInto (p.Graphics, 0, 0)

so how do i save and print a picture that is not on the screen?

thx

[quote=161402:@Carl Mize]i started a conversation at “Updating SaveAsPicture” but a number of people got into a lengthy discussion on printing so my last question got lost.

i want to create a picture that will not appear on the screen and print and/or save that picture. Axel Schneider suggested the following to copy a picture on the screen but i don’t want to save or print what is on the screen. i want to save what is on the screen plus some text that i will add for explanation but not display on the screen

main.CanvasDD(4).DrawInto (p.Graphics, 0, 0)

so how do i save and print a picture that is not on the screen?

thx[/quote]

http://documentation.xojo.com/index.php/Picture.Save

http://documentation.xojo.com/index.php/OpenPrinterDialog

Dim g As Graphics g = OpenPrinterDialog If g <> Nil Then g.DrawPicture(Mypicture,0,0) End If

and to save it as a jpeg file?

this is like jcl when i was a student 45 years ago. i didn’t know that very well either.

thx

[quote=161424:@Carl Mize]and to save it as a jpeg file?

this is like jcl when i was a student 45 years ago. i didn’t know that very well either.

thx[/quote]

Read : http://documentation.xojo.com/index.php/Picture.Save

A picture has a Graphics property. Graphics as many methods for drawing whatever you want. Picture has a Save method to save it wherever you want. It takes a FolderItem, which you can create with GetFolderItem and/or FolderItem.Child(). What part of this are you stuck on?

Is this note NOTE: Only JPEG and PNG are supported in console applications valid mentioned on page http://documentation.xojo.com/index.php/Picture.Save

tim

what i needed was time to think about this and work on solutions which i did. i’m pretty at regular programming but i spend as little time as possible on the aspect of saving and printing pictures but now have the code

to all thanks for the help. this is a valuable community