December 04, 2020, 11:17:47 AM

Author Topic: [bb] Save Screenshot by Murilo [ 1+ years ago ]  (Read 378 times)

Offline BlitzBot

  • Jr. Member
  • **
  • Posts: 1
[bb] Save Screenshot by Murilo [ 1+ years ago ]
« on: June 29, 2017, 12:28:40 AM »
Title : Save Screenshot
Author : Murilo
Posted : 1+ years ago

Description : Saves a snapshot of the current view (front buffer) to the current directory. Automatically determines the next available file number; Screenshot001.bmp, Screenshot002.bmp etc.

Code :
Code: BlitzBasic
  1. Function SaveScreenshot()
  2.  
  3. ; Version: 1.0
  4. ; Author: Leigh Bowers
  5. ; Homepage: http://www.curvenet.co.uk
  6.  
  7.     iFileNumber% = 0
  8.     Repeat
  9.         iFileNumber = iFileNumber + 1
  10.         sFileName$ = "Screenshot" + String$("0", 3 - Len(Str$(iFileNumber))) + iFileNumber + ".bmp"
  11.     Until Not(FileType(sFileName))
  12.    
  13.     SaveBuffer FrontBuffer(), sFileName
  14.  
  15. End Function


Comments :


googlemesilly(Posted 1+ years ago)

 thanks guys ! :)S/D


Zeotrope(Posted 1+ years ago)

 7 Years!Man, where did you get your nick? *Milky Joe.....boosh?


 

SimplePortal 2.3.6 © 2008-2014, SimplePortal