org.appcelerator.titanium.util
Class TiUIHelper

java.lang.Object
  extended by org.appcelerator.titanium.util.TiUIHelper

public class TiUIHelper
extends Object

A set of utility methods focused on UI and View operations.


Method Summary
static Bitmap createBitmap(InputStream stream)
          Creates and returns a Bitmap from an InputStream.
static Bitmap getResourceBitmap(int res_id)
          Creates and returns a bitmap for the specified resource ID.
static Bitmap getResourceBitmap(String url)
          Creates and returns a bitmap from its url.
 

Method Detail

createBitmap

public static Bitmap createBitmap(InputStream stream)
Creates and returns a Bitmap from an InputStream.

Parameters:
stream - an InputStream to read bitmap data.
Returns:
a new bitmap instance.

getResourceBitmap

public static Bitmap getResourceBitmap(String url)
Creates and returns a bitmap from its url.

Parameters:
url - the bitmap url.
Returns:
a new bitmap instance

getResourceBitmap

public static Bitmap getResourceBitmap(int res_id)
Creates and returns a bitmap for the specified resource ID.

Parameters:
res_id - the bitmap id.
Returns:
a new bitmap instance.


Copyright © 2010-2012 Appcelerator, Inc. Licensed under the Apache License 2.0