Esempio n. 1
0
ECode CPicture::GetWidth(
    /* [out] */ Int32* width)
{
    VALIDATE_NOT_NULL(width);
    *width = NativeGetWidth(mNativePicture);
    return NOERROR;
}
Esempio n. 2
0
/** @param pLength the original image's width */
ECode CLargeBitmap::GetWidth(
    /* [out] */ Int32* length)
{
    VALIDATE_NOT_NULL(length);

    FAIL_RETURN(CheckRecycled("getWidth called on recycled large bitmap"));
    *length = NativeGetWidth(mNativeLargeBitmap);
    return NOERROR;
}