Package com.blackberry.toolkit.ui.images

Examples of com.blackberry.toolkit.ui.images.ImageManipulator


      dimension -= 2; // old theme is better with full size image.
    }
    if (image.getHeight() > dimension) {
      Bitmap scaled = new Bitmap(dimension, dimension);
//#ifdef BlackBerrySDK4.2.1 | BlackBerrySDK4.3.0 | BlackBerrySDK4.5.0 | BlackBerrySDK4.6.0 | BlackBerrySDK4.6.1 | BlackBerrySDK4.7.0
      ImageManipulator manip = new ImageManipulator(image);
      manip.scaleInto(scaled, ImageManipulator.FILTER_BILINEAR, ImageManipulator.SCALE_TO_FIT);
//#else
      image.scaleInto(scaled, Bitmap.FILTER_BILINEAR, Bitmap.SCALE_TO_FIT);
//#endif
      return scaled;
    }
View Full Code Here

TOP

Related Classes of com.blackberry.toolkit.ui.images.ImageManipulator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.