NetLizard
Endi dasturlarda screenshot funksiyasini hech qanday qiyinchiliksiz qilishingiz mumkin.Funksiya sodda va tezkor qilib yaratildi.
  1. function OnStart()
  2. {
  3. //Create a layout with objects vertically centered.
  4. lay = app.CreateLayout( "linear", "VCenter,FillXY" );
  5.  
  6. //Create image 1/5 of screen width and correct aspect ratio.
  7. img = app.CreateImage( "Img/Hello World.png", 0.2, -1 );
  8. lay.AddChild( img );
  9.  
  10. //Create a button 1/3 of screen width and 1/10 screen height.
  11. btn = app.CreateButton( "Press Me", 0.3, 0.1 );
  12. btn.SetMargins( 0, 0.05, 0, 0 );
  13. lay.AddChild( btn );
  14.  
  15. //Set function to call when button pressed.
  16.  
  17. btn.SetOnTouch( btn_OnTouch );
  18.  
  19. //Add layout to app.
  20. app.AddLayout( lay );
  21. }
  22.  
  23. //Called when user touches our button.
  24. function btn_OnTouch()
  25. {
  26. //Show a popup message.
  27. date = new Date();
  28. app.ScreenShot( "sdcard/" + date + ".png");
  29. app.ShowPopup( date);
  30. }

Funksiyani ishga tushirish juda oddiy "app.ScreenShoot("sdcard/test.png", 90);
orqali screenshot qilish mumkin.
*- bu yerda 90(bu rasm sifati, uni hoxlagancha qoyishingiz mumkin.Masalan, 70,80,100