ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 ASGScreenCapture CaptureObject bug
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

mhieta

Finland
78 Posts

Posted - Jun 15 2013 :  03:19:45  Show Profile  Reply
Hi William,

Using XE3 with latest updates and latest ASGScreenCapture. CaptureObject is not working correctly.
In this case iBitmap is not getting bitmap.

Code sniplet from simple demo:
procedure TForm1.Object1Click ( Sender: TObject );
var
iBitmap: TBitmap;
iFileName: string;
iExtension: string;
begin

iBitmap := ASGScreenCapture1.CaptureObject;
try

Image1.Picture.Assign ( iBitmap );

finally
iBitmap.Free;
end;

with ScrollBox1 do
begin
HorzScrollBar.range := Image1.Picture.Width;
VertScrollBar.range := Image1.Picture.Height;
end;

iFileName := IncludeTrailingPathDelimiter ( DesktopFolder ) + 'Image ' + IntToStr ( ASGScreenCapture1.CaptureCount );
iExtension := '.bmp';

FFilePath := iFileName + iExtension;
Caption := 'Simple Demo - ' + FFilePath;
// The CaptureCount is automatically inc with each sucessive capture
CaptureCount1.Caption := 'Capture Count: ' + IntToStr ( ASGScreenCapture1.CaptureCount );

end;

But if I do Large Icon capture first then CaptureObject works with that Large Icon capture size :) Anyway this bug is not related to simpledemo :)


- Marko

w2m

USA
1990 Posts

Posted - Jun 15 2013 :  06:13:13  Show Profile  Reply
I am sorry... I only have Delphi 2010 which does not show this problem, so I have no way to fix it for XE3. Do the demos work? Is CaptureObject the only capture type that does not work with XE3?

William Miller
Adirondack Software & Graphics
Email: w2m@frontiernet.net
EBook: http://www.imageen.com/ebook/
Apprehend: http://www.frontiernet.net/~w2m/index.html
Go to Top of Page

mhieta

Finland
78 Posts

Posted - Jun 15 2013 :  12:09:54  Show Profile  Reply
Hi,

That code sniplet is from the SimpleDemo app. From that demo app those other captures works okay in XE3. So that CaptureObject is only one what is not working.


- Marko
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: