Ooops
November 25, 2020, 08:33:55 AM

Author Topic: Capture DesktopShot in blitzmax  (Read 113 times)

Offline Hardcoal

  • Sr. Member
  • ****
  • Posts: 481
Capture DesktopShot in blitzmax
« on: November 21, 2020, 10:18:55 AM »
how can i capture a desktop shot in blitzmax?

Go with the Flow

Offline Scaremonger

  • Jr. Member
  • **
  • Posts: 95
    • ITSpeedway - Ramblings of a geek!
Re: Capture DesktopShot in blitzmax
« Reply #1 on: November 21, 2020, 02:15:05 PM »

Code: [Select]
pixmap = CreatePixmap( GraphicsWidth(), GraphicsHeight(), PF_RGBA8888 )
pixmap = GrabPixmap( 0,0,GraphicsWidth(), GraphicsHeight() )
SavePixmapPNG( pixmap, "screenshot.png" )


Si...
Follow me at ITSpeedway.net.

Offline Hardcoal

  • Sr. Member
  • ****
  • Posts: 481
Re: Capture DesktopShot in blitzmax
« Reply #2 on: November 21, 2020, 02:38:40 PM »
Thanks, But I wanted a desktop screenshot not a blitzmax screenshot..
Go with the Flow

Offline Jayenkai

  • Jr. Member
  • **
  • Posts: 7
Re: Capture DesktopShot in blitzmax
« Reply #3 on: November 22, 2020, 03:00:21 PM »
The following SoCoder thread features Spinal & Dan's attempts to get this working in Blitz3D.
Although BlitzMax is indeed a different kettle of fish, it might give you a few pointers to help get you off the mark.
SoCoder Thread


(*goes back into hiding.  apologies for spam-like post, I just figured it might help*)

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal