Ejemplo n.º 1
0
ECode CPaintFlagsDrawFilter::constructor(
    /* [in] */ Int32 clearBits,
    /* [in] */ Int32 setBits)
{
    mClearBits = clearBits;
    mSetBits = setBits;
    mNativeInstance = NativeConstructor(clearBits, setBits);
    return NOERROR;
}
Ejemplo n.º 2
0
ECode CEmbossMaskFilter::constructor(
    /* [in] */ const ArrayOf<Float>& direction,
    /* [in] */ Float ambient,
    /* [in] */ Float specular,
    /* [in] */ Float blurRadius)
{
    if (direction.GetLength() < 3) {
        // throw new ArrayIndexOutOfBoundsException();
        return E_ARRAY_INDEX_OUT_OF_BOUNDS_EXCEPTION;
    }

    mNativeInstance = NativeConstructor(direction, ambient, specular, blurRadius);
    return NOERROR;
}
Ejemplo n.º 3
0
ECode CPicture::constructor(
    /* [in] */ IPicture* src)
{
    return constructor(NativeConstructor(
            src != NULL ? ((CPicture*)src)->mNativePicture : 0));
}
Ejemplo n.º 4
0
ECode CPicture::constructor()
{
    return constructor(NativeConstructor(0));
}
ECode CLayerRasterizer::constructor()
{
    mNativeInstance = NativeConstructor();
    return NOERROR;
}