List of all Iphone and Blackberry Development codes in a one click Iphone,objective C,xcode,blackberry Development,iOS Development

Monday, April 16, 2012

Get Screen Shot Programatically in Blackberry




  1. Bitmap b=getScreenShot();
    BitmapField b1=new BitmapField(b);
    add(b1);

    public static Bitmap getScreenShot() {

    // get the current screen .
    Bitmap bitmap;
    bitmap = new Bitmap(net.rim.device.api.system.Display.getWidth(), net.rim.device.api.system.Display.getHeight());
    net.rim.device.api.system.Display.screenshot(bitmap);
    // return the screen shot
    return bitmap;
    }






        

No comments:

Post a Comment