Jump to content
A-man

Screenshot box

Recommended Posts

There's no specific function to achieve this, however, I can add one if you'd like, as screenshots support png saving where as the regular bitmap system doesn't.

 

You can work around the issue using the regular bitmap system, but you can't save to png as i said?

[scar]var

w, h, bmp: Integer;

 

const

xs = 100;

ys = 100;

xe = 300;

ye = 200;

 

begin

w := xe - xs + 1;

h := ye - ys + 1;

bmp := BitmapFromString(w, h, '');

CopyClientToBitmap(bmp, xs, ys, xe, ye);

SaveBitmap(bmp, ScreenPath + 'myscreenshot.bmp');

FreeBitmap(bmp);

end.[/scar]

Link to comment
Share on other sites

Haay Freddy, do you think you could improve the SCAR's Screenshot function (or add a new one) to work with Area (x1, y1, x2, y2) like requested here. ..and also add possiblity save the screenshot's as .PNG's with the function? That would be great! Right now it's full client and .BMP only, right?

Link to comment
Share on other sites

Ah yes, it is bmp only indeed. I'll Add a SaveScreenshotEx for specifying a target box and I'll integrate the screenshot option into the function.

 

Tweak for SaveScreenshot noted for minor release 3.25.02

SaveScreenshotEx noted for major release 3.26.00

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
  • Create New...