Jump to content
turner850

Saving a bitmap to an external file

Recommended Posts

my code

 

 //By turner850

program RSCCaptchaSolver;
var
 captchaBmp: TSCARBitmap;
begin

 captchaBmp := GetClient.CaptureEx(128, 229, 384, 270);
 try
   SaveBitmap(captchaBmp, ScreenPath + 'captcha.bmp');
 finally
   CaptchaBmp.Free;
 end;

end.

 

It says SaveBitmap is unknown... It's in the wiki..

 

How else can I do this?

Link to comment
Share on other sites

Try doing Bmp DOT then hit Ctrl+Spacebar to bringup the function list and scroll down it using your mouse to see everything it can do.

 

Off the top of my head i think they are: Bmp.SaveToBmp

Bmp.SaveToPng

Bmp.SaveToJpeg

 

Bmp of course being a TSCARBitmap

Edited by LordJashin
Link to comment
Share on other sites

Yep, what LJ said:

 

  //By turner850

program RSCCaptchaSolver;
var
 captchaBmp: TSCARBitmap;
begin

 captchaBmp := GetClient.CaptureEx(128, 229, 384, 270);
 try
   CaptchaBmp.SaveToBmp(ScreenPath + 'captcha.bmp');
 finally
   CaptchaBmp.Free;
 end;

end.

 

Wiki is not yet updated to TSCARBitmap.

 

-Jani

  • Like 1
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...