AI2 Component  (Version nb184)
DonutUtil.java
Go to the documentation of this file.
1 // -*- mode: java; c-basic-offset: 2; -*-
2 // Copyright 2009-2011 Google, All Rights reserved
3 // Copyright 2011-2012 MIT, All rights reserved
4 // Released under the Apache License, Version 2.0
5 // http://www.apache.org/licenses/LICENSE-2.0
6 
7 package com.google.appinventor.components.runtime.util;
8 
9 import android.graphics.Bitmap;
10 import android.view.View;
11 
17 public class DonutUtil {
18  private DonutUtil() {
19  }
20 
29  public static void buildDrawingCache(View view, boolean autoScale) {
30  view.buildDrawingCache(autoScale);
31  }
32 
39  public static Bitmap getDrawingCache(View view, boolean autoScale) {
40  return view.getDrawingCache(autoScale);
41  }
42 }
com.google.appinventor.components.runtime.util.DonutUtil
Definition: DonutUtil.java:17
com.google.appinventor.components.runtime.util.DonutUtil.buildDrawingCache
static void buildDrawingCache(View view, boolean autoScale)
Definition: DonutUtil.java:29
com.google.appinventor.components.runtime.util.DonutUtil.getDrawingCache
static Bitmap getDrawingCache(View view, boolean autoScale)
Definition: DonutUtil.java:39