Languages

Menu
Sites
Language
Take screenshot programmatically

Hi,

I have form with ListView. I need to take screenshot of this form programmatically. How i can do it?

I try to call: result Tizen::Graphics::Bitmap::Construct(const Rectangle & )

But result bitmap is empty.

 

    Bitmap* screenBmp= new Bitmap;
	Rectangle rect = this->GetBounds();
	rect.width = 110;
	screenBmp->Construct(rect);



 

Responses

4 Replies
Alex Dem

Hi,
This approach just: Initializes this instance of Bitmap by copying a rectangular area of the Frame (in accordance with documentation).
It is not programmatically way:
https://developer.tizen.org/forums/general-support/how-screenshot-on-tizen-phone
Alexey.

Alex Ashirov

Hi,

AFAIK, it isn’t possible to take a screenshot programmatically.

Sathya Priya R

Hi SeriKov,

Have you tried using this api "SystemUtil::CaptureScreenN" ?

It requires Platform privileges and it captures active screen in any required format. (png/jpg/bmp)

Hope this helps.

Thanks,

SathyaPriya R

 

 

 

Alex Dem

Hi,
Thank you for useful info.
note: regarding to obtain platform priveleges here: https://developer.tizen.org/dev-guide/2.2.1/org.tizen.gettingstarted/html/tizen_overview/platform_privileges.htm and link to disributor certificate:
https://review.tizen.org/git/?p=framework/security/hash-signer.git;a=tree;f=certificates;hb=bd8d04b0e94ae6cce668f6df9c93316eded01cd5
Alexey.