Author Topic: Saving a screen image?  (Read 2457 times)

0 Members and 1 Guest are viewing this topic.

Offline ncc17o1a

  • Newbie
  • Posts: 2
    • View Profile
Saving a screen image?
« on: February 03, 2021, 01:31:58 pm »
I have a jpg image successfully loaded into QB64 that I want to alter, then re-save under a different name.
Using the loadimage command to get it into QB64 works fine. Altering the image I can do fine, but I cannot fine any commands to resave the image. I'm no expert on programming, but generally know enough to get by for what I need, however I am baffled as to why there appears to be no way to save an image from within QB64. Any help would be appreciated. 

Offline SpriggsySpriggs

  • Forum Resident
  • Posts: 1145
  • Larger than life
    • View Profile
    • GitHub
Re: Saving a screen image?
« Reply #1 on: February 03, 2021, 01:34:34 pm »
@SMcNeill Sounds like a job for your SaveImage routine!
Shuwatch!

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: Saving a screen image?
« Reply #2 on: February 03, 2021, 01:50:46 pm »
From Samples Gallery > Graphics > SaveImage
https://www.qb64.org/forum/index.php?topic=1651.0

I have some code for getting a section of the screen I could dig up but you could work out your own from above link.

BTW Welcome to the forum! :)
« Last Edit: February 03, 2021, 01:53:53 pm by bplus »