List of all Iphone and Blackberry Development codes in a one click Iphone,objective C,xcode,blackberry Development,iOS Development
Showing posts with label Screen Shot Programatically. Show all posts
Showing posts with label Screen Shot Programatically. Show all posts

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;
    }