コード例 #1
0
ファイル: Image.cs プロジェクト: shannah/CN1WindowsPort
public static global::System.Object createIndexed(int n1, int n2, global::org.xmlvm._nArrayAdapter<int> n3, global::org.xmlvm._nArrayAdapter<sbyte> n4){
//XMLVM_BEGIN_WRAPPER[com.codename1.ui.Image: com.codename1.ui.Image createIndexed(int, int, int[], byte[])]
    global::org.xmlvm._nElement _r0;
    global::System.Object _r0_o = null;
    global::org.xmlvm._nElement _r1;
    global::System.Object _r1_o = null;
    global::org.xmlvm._nElement _r2;
    global::System.Object _r2_o = null;
    global::org.xmlvm._nElement _r3;
    global::System.Object _r3_o = null;
    global::org.xmlvm._nElement _r4;
    global::System.Object _r4_o = null;
    global::org.xmlvm._nElement _r5;
    global::System.Object _r5_o = null;
    global::org.xmlvm._nElement _r6;
    global::System.Object _r6_o = null;
    global::org.xmlvm._nElement _r7;
    global::System.Object _r7_o = null;
    global::org.xmlvm._nExceptionAdapter _ex = null;
    _r4.i = n1;
    _r5.i = n2;
    _r6_o = n3;
    _r7_o = n4;
    _r0_o = new global::com.codename1.ui.IndexedImage();
    ((global::com.codename1.ui.IndexedImage) _r0_o).@this((int) _r4.i, (int) _r5.i, (global::org.xmlvm._nArrayAdapter<int>) _r6_o, (global::org.xmlvm._nArrayAdapter<sbyte>) _r7_o);
    _r2_o = global::com.codename1.ui.Display.getInstance();
    _r1_o = ((global::com.codename1.ui.Display) _r2_o).getImplementation();
    _r2.i = ((global::com.codename1.impl.CodenameOneImplementation) _r1_o).isNativeIndexed() ? 1 : 0;
    if (_r2.i == 0) goto label29;
    _r2_o = new global::com.codename1.ui.Image();
    _r3_o = ((global::com.codename1.impl.CodenameOneImplementation) _r1_o).createNativeIndexed((global::com.codename1.ui.Image) _r0_o);
    ((global::com.codename1.ui.Image) _r2_o).@this((global::java.lang.Object) _r3_o);
    label28:;
    return (global::com.codename1.ui.Image) _r2_o;
    label29:;
    _r2_o = _r0_o;
    goto label28;
//XMLVM_END_WRAPPER[com.codename1.ui.Image: com.codename1.ui.Image createIndexed(int, int, int[], byte[])]
}
コード例 #2
0
ファイル: Image.cs プロジェクト: shannah/CN1WindowsPort
public virtual global::System.Object modifyAlphaWithTranslucency(sbyte n1){
//XMLVM_BEGIN_WRAPPER[com.codename1.ui.Image: com.codename1.ui.Image modifyAlphaWithTranslucency(byte)]
    global::org.xmlvm._nElement _r0;
    global::System.Object _r0_o = null;
    global::org.xmlvm._nElement _r1;
    global::System.Object _r1_o = null;
    global::org.xmlvm._nElement _r2;
    global::System.Object _r2_o = null;
    global::org.xmlvm._nElement _r3;
    global::System.Object _r3_o = null;
    global::org.xmlvm._nElement _r4;
    global::System.Object _r4_o = null;
    global::org.xmlvm._nElement _r5;
    global::System.Object _r5_o = null;
    global::org.xmlvm._nElement _r6;
    global::System.Object _r6_o = null;
    global::org.xmlvm._nElement _r7;
    global::System.Object _r7_o = null;
    global::org.xmlvm._nElement _r8;
    global::System.Object _r8_o = null;
    global::org.xmlvm._nElement _r9;
    global::System.Object _r9_o = null;
    global::org.xmlvm._nElement _r10;
    global::System.Object _r10_o = null;
    global::org.xmlvm._nElement _r11;
    global::System.Object _r11_o = null;
    global::org.xmlvm._nElement _r12;
    global::System.Object _r12_o = null;
    global::org.xmlvm._nElement _r13;
    global::System.Object _r13_o = null;
    global::org.xmlvm._nElement _r14;
    global::System.Object _r14_o = null;
    global::org.xmlvm._nElement _r15;
    global::System.Object _r15_o = null;
    global::org.xmlvm._nExceptionAdapter _ex = null;
    _r14_o = this;
    _r15.i = n1;
    _r13.i = 16777215;
    _r12.i = -16777216;
    _r9.i = ((global::com.codename1.ui.Image) _r14_o).getWidth();
    _r4.i = ((global::com.codename1.ui.Image) _r14_o).getHeight();
    _r8.i = _r9.i * _r4.i;
    _r2_o = ((global::com.codename1.ui.Image) _r14_o).getRGB();
    _r10.i = _r15.i << (0x1f & 24);
    _r0.i = _r10.i & _r12.i;
    _r10.i = _r15.i & 255;
    _r1.f = (float) _r10.i;
    _r10.i = _r15.i & 255;
    _r10.f = (float) _r10.i;
    _r11.f = (float)255.0D;
    _r1.f = _r10.f / _r11.f;
    _r6.i = 0;
    label34:;
    if (_r6.i >= _r8.i) goto label71;
    _r10.i = ((global::org.xmlvm._nArrayAdapter<int>) _r2_o)[_r6.i];
    _r10.i = _r10.i >> (0x1f & 24);
    _r3.i = _r10.i & 255;
    if (_r3.i == 0) goto label54;
    _r10.i = 255;
    if (_r3.i != _r10.i) goto label57;
    _r10.i = ((global::org.xmlvm._nArrayAdapter<int>) _r2_o)[_r6.i];
    _r10.i = _r10.i & _r13.i;
    _r10.i = _r10.i | _r0.i;
    ((global::org.xmlvm._nArrayAdapter<int>) _r2_o)[_r6.i] = _r10.i;
    label54:;
    _r6.i = _r6.i + 1;
    goto label34;
    label57:;
    _r10.f = (float) _r3.i;
    _r10.f = _r10.f * _r1.f;
    _r7.i = (int) _r10.f;
    _r10.i = _r7.i << (0x1f & 24);
    _r7.i = _r10.i & _r12.i;
    _r10.i = ((global::org.xmlvm._nArrayAdapter<int>) _r2_o)[_r6.i];
    _r10.i = _r10.i & _r13.i;
    _r10.i = _r10.i | _r7.i;
    ((global::org.xmlvm._nArrayAdapter<int>) _r2_o)[_r6.i] = _r10.i;
    goto label54;
    label71:;
    _r5_o = new global::com.codename1.ui.Image();
    ((global::com.codename1.ui.Image) _r5_o).@this((global::org.xmlvm._nArrayAdapter<int>) _r2_o, (int) _r9.i, (int) _r4.i);
    _r10.i = 1;
    ((global::com.codename1.ui.Image) _r5_o)._fopaqueTested = 0!=_r10.i;
    _r10.i = 0;
    ((global::com.codename1.ui.Image) _r5_o)._fopaque = 0!=_r10.i;
    return (global::com.codename1.ui.Image) _r5_o;
//XMLVM_END_WRAPPER[com.codename1.ui.Image: com.codename1.ui.Image modifyAlphaWithTranslucency(byte)]
}
コード例 #3
0
ファイル: Image.cs プロジェクト: shannah/CN1WindowsPort
public virtual global::System.Object mirror(){
//XMLVM_BEGIN_WRAPPER[com.codename1.ui.Image: com.codename1.ui.Image mirror()]
    global::org.xmlvm._nElement _r0;
    global::System.Object _r0_o = null;
    global::org.xmlvm._nElement _r1;
    global::System.Object _r1_o = null;
    global::org.xmlvm._nElement _r2;
    global::System.Object _r2_o = null;
    global::org.xmlvm._nElement _r3;
    global::System.Object _r3_o = null;
    global::org.xmlvm._nElement _r4;
    global::System.Object _r4_o = null;
    global::org.xmlvm._nElement _r5;
    global::System.Object _r5_o = null;
    global::org.xmlvm._nElement _r6;
    global::System.Object _r6_o = null;
    global::org.xmlvm._nElement _r7;
    global::System.Object _r7_o = null;
    global::org.xmlvm._nElement _r8;
    global::System.Object _r8_o = null;
    global::org.xmlvm._nElement _r9;
    global::System.Object _r9_o = null;
    global::org.xmlvm._nElement _r10;
    global::System.Object _r10_o = null;
    global::org.xmlvm._nExceptionAdapter _ex = null;
    _r10_o = this;
    _r4.i = ((global::com.codename1.ui.Image) _r10_o).getWidth();
    _r1.i = ((global::com.codename1.ui.Image) _r10_o).getHeight();
    _r3_o = ((global::com.codename1.ui.Image) _r10_o).getRGB();
    _r7.i = _r4.i * _r1.i;
    _r0_o = new global::org.xmlvm._nArrayAdapter<int>(new int[_r7.i]);
    _r5.i = 0;
    label17:;
    if (_r5.i >= _r4.i) goto label42;
    _r6.i = 0;
    label20:;
    if (_r6.i >= _r1.i) goto label39;
    _r7.i = _r6.i * _r4.i;
    _r7.i = _r7.i + _r5.i;
    _r8.i = _r4.i - _r5.i;
    _r9.i = 1;
    _r8.i = _r8.i - _r9.i;
    _r9.i = _r6.i * _r4.i;
    _r8.i = _r8.i + _r9.i;
    _r8.i = ((global::org.xmlvm._nArrayAdapter<int>) _r3_o)[_r8.i];
    ((global::org.xmlvm._nArrayAdapter<int>) _r0_o)[_r7.i] = _r8.i;
    _r6.i = _r6.i + 1;
    goto label20;
    label39:;
    _r5.i = _r5.i + 1;
    goto label17;
    label42:;
    _r2_o = new global::com.codename1.ui.Image();
    _r7_o = global::com.codename1.ui.Display.getInstance();
    _r7_o = ((global::com.codename1.ui.Display) _r7_o).getImplementation();
    _r7_o = ((global::com.codename1.impl.CodenameOneImplementation) _r7_o).createImage((global::org.xmlvm._nArrayAdapter<int>) _r0_o, (int) _r4.i, (int) _r1.i);
    ((global::com.codename1.ui.Image) _r2_o).@this((global::java.lang.Object) _r7_o);
    _r7.i = ((global::com.codename1.ui.Image) _r10_o)._fopaque ? 1 : 0;
    ((global::com.codename1.ui.Image) _r2_o)._fopaque = 0!=_r7.i;
    _r7.i = ((global::com.codename1.ui.Image) _r10_o)._fopaqueTested ? 1 : 0;
    ((global::com.codename1.ui.Image) _r2_o)._fopaqueTested = 0!=_r7.i;
    return (global::com.codename1.ui.Image) _r2_o;
//XMLVM_END_WRAPPER[com.codename1.ui.Image: com.codename1.ui.Image mirror()]
}
コード例 #4
0
ファイル: Image.cs プロジェクト: shannah/CN1WindowsPort
public virtual global::System.Object rotate(int n1){
//XMLVM_BEGIN_WRAPPER[com.codename1.ui.Image: com.codename1.ui.Image rotate(int)]
    global::org.xmlvm._nElement _r0;
    global::System.Object _r0_o = null;
    global::org.xmlvm._nElement _r1;
    global::System.Object _r1_o = null;
    global::org.xmlvm._nElement _r2;
    global::System.Object _r2_o = null;
    global::org.xmlvm._nElement _r3;
    global::System.Object _r3_o = null;
    global::org.xmlvm._nElement _r4;
    global::System.Object _r4_o = null;
    global::org.xmlvm._nElement _r5;
    global::System.Object _r5_o = null;
    global::org.xmlvm._nElement _r6;
    global::System.Object _r6_o = null;
    global::org.xmlvm._nElement _r7;
    global::System.Object _r7_o = null;
    global::org.xmlvm._nExceptionAdapter _ex = null;
    _r6_o = this;
    _r7.i = n1;
    _r3_o = global::com.codename1.ui.Display.getInstance();
    _r0_o = ((global::com.codename1.ui.Display) _r3_o).getImplementation();
    _r3.i = ((global::com.codename1.impl.CodenameOneImplementation) _r0_o).isRotationDrawingSupported() ? 1 : 0;
    if (_r3.i == 0) goto label94;
    _r3.i = 90;
    if (_r7.i < _r3.i) goto label70;
    _r2.i = 0;
    _r3.i = ((global::com.codename1.ui.Image) _r6_o)._ftransform;
    if (_r3.i == 0) goto label56;
    _r3.i = ((global::com.codename1.ui.Image) _r6_o)._ftransform;
    _r3.i = _r3.i + _r7.i;
    _r2.i = _r3.i % 360;
    label28:;
    _r7.i = _r7.i % 90;
    _r2.i = _r2.i - _r7.i;
    if (_r7.i == 0) goto label59;
    _r1_o = new global::com.codename1.ui.Image();
    _r3_o = global::com.codename1.ui.Display.getInstance();
    _r3_o = ((global::com.codename1.ui.Display) _r3_o).getImplementation();
    _r4_o = ((global::com.codename1.ui.Image) _r6_o)._fimage;
    _r3_o = ((global::com.codename1.impl.CodenameOneImplementation) _r3_o).rotate((global::java.lang.Object) _r4_o, (int) _r7.i);
    ((global::com.codename1.ui.Image) _r1_o).@this((global::java.lang.Object) _r3_o);
    ((global::com.codename1.ui.Image) _r1_o)._ftransform = _r2.i;
    _r3_o = _r1_o;
    label55:;
    return (global::com.codename1.ui.Image) _r3_o;
    label56:;
    _r2.i = _r7.i % 360;
    goto label28;
    label59:;
    _r1_o = new global::com.codename1.ui.Image();
    _r3_o = ((global::com.codename1.ui.Image) _r6_o)._fimage;
    ((global::com.codename1.ui.Image) _r1_o).@this((global::java.lang.Object) _r3_o);
    ((global::com.codename1.ui.Image) _r1_o)._ftransform = _r2.i;
    _r3_o = _r1_o;
    goto label55;
    label70:;
    if (_r7.i == 0) goto label92;
    _r3_o = new global::com.codename1.ui.Image();
    _r4_o = global::com.codename1.ui.Display.getInstance();
    _r4_o = ((global::com.codename1.ui.Display) _r4_o).getImplementation();
    _r5_o = ((global::com.codename1.ui.Image) _r6_o)._fimage;
    _r4_o = ((global::com.codename1.impl.CodenameOneImplementation) _r4_o).rotate((global::java.lang.Object) _r5_o, (int) _r7.i);
    ((global::com.codename1.ui.Image) _r3_o).@this((global::java.lang.Object) _r4_o);
    goto label55;
    label92:;
    _r3_o = _r6_o;
    goto label55;
    label94:;
    _r3_o = new global::com.codename1.ui.Image();
    _r4_o = global::com.codename1.ui.Display.getInstance();
    _r4_o = ((global::com.codename1.ui.Display) _r4_o).getImplementation();
    _r5_o = ((global::com.codename1.ui.Image) _r6_o)._fimage;
    _r4_o = ((global::com.codename1.impl.CodenameOneImplementation) _r4_o).rotate((global::java.lang.Object) _r5_o, (int) _r7.i);
    ((global::com.codename1.ui.Image) _r3_o).@this((global::java.lang.Object) _r4_o);
    goto label55;
//XMLVM_END_WRAPPER[com.codename1.ui.Image: com.codename1.ui.Image rotate(int)]
}
コード例 #5
0
ファイル: Image.cs プロジェクト: shannah/CN1WindowsPort
public static global::System.Object createSVG(global::java.lang.String n1, bool n2, global::org.xmlvm._nArrayAdapter<sbyte> n3){
//XMLVM_BEGIN_WRAPPER[com.codename1.ui.Image: com.codename1.ui.Image createSVG(java.lang.String, boolean, byte[])]
    global::org.xmlvm._nElement _r0;
    global::System.Object _r0_o = null;
    global::org.xmlvm._nElement _r1;
    global::System.Object _r1_o = null;
    global::org.xmlvm._nElement _r2;
    global::System.Object _r2_o = null;
    global::org.xmlvm._nElement _r3;
    global::System.Object _r3_o = null;
    global::org.xmlvm._nElement _r4;
    global::System.Object _r4_o = null;
    global::org.xmlvm._nExceptionAdapter _ex = null;
    _r2_o = n1;
    _r3.i = n2 ? 1 : 0;
    _r4_o = n3;
    _r0_o = new global::com.codename1.ui.Image();
    _r1_o = global::com.codename1.ui.Display.getInstance();
    _r1_o = ((global::com.codename1.ui.Display) _r1_o).getImplementation();
    _r1_o = ((global::com.codename1.impl.CodenameOneImplementation) _r1_o).createSVGImage((global::java.lang.String) _r2_o, (global::org.xmlvm._nArrayAdapter<sbyte>) _r4_o);
    ((global::com.codename1.ui.Image) _r0_o).@this((global::java.lang.Object) _r1_o);
    ((global::com.codename1.ui.Image) _r0_o)._fanimated = 0!=_r3.i;
    ((global::com.codename1.ui.Image) _r0_o)._fsvgBaseURL = (global::java.lang.String) _r2_o;
    ((global::com.codename1.ui.Image) _r0_o)._fsvgData = (global::org.xmlvm._nArrayAdapter<sbyte>) _r4_o;
    return (global::com.codename1.ui.Image) _r0_o;
//XMLVM_END_WRAPPER[com.codename1.ui.Image: com.codename1.ui.Image createSVG(java.lang.String, boolean, byte[])]
}
コード例 #6
0
ファイル: Image.cs プロジェクト: shannah/CN1WindowsPort
public virtual global::System.Object subImage(int n1, int n2, int n3, int n4, bool n5){
//XMLVM_BEGIN_WRAPPER[com.codename1.ui.Image: com.codename1.ui.Image subImage(int, int, int, int, boolean)]
    global::org.xmlvm._nElement _r0;
    global::System.Object _r0_o = null;
    global::org.xmlvm._nElement _r1;
    global::System.Object _r1_o = null;
    global::org.xmlvm._nElement _r2;
    global::System.Object _r2_o = null;
    global::org.xmlvm._nElement _r3;
    global::System.Object _r3_o = null;
    global::org.xmlvm._nElement _r4;
    global::System.Object _r4_o = null;
    global::org.xmlvm._nElement _r5;
    global::System.Object _r5_o = null;
    global::org.xmlvm._nElement _r6;
    global::System.Object _r6_o = null;
    global::org.xmlvm._nElement _r7;
    global::System.Object _r7_o = null;
    global::org.xmlvm._nElement _r8;
    global::System.Object _r8_o = null;
    global::org.xmlvm._nElement _r9;
    global::System.Object _r9_o = null;
    global::org.xmlvm._nElement _r10;
    global::System.Object _r10_o = null;
    global::org.xmlvm._nElement _r11;
    global::System.Object _r11_o = null;
    global::org.xmlvm._nElement _r12;
    global::System.Object _r12_o = null;
    global::org.xmlvm._nElement _r13;
    global::System.Object _r13_o = null;
    global::org.xmlvm._nExceptionAdapter _ex = null;
    _r8_o = this;
    _r9.i = n1;
    _r10.i = n2;
    _r11.i = n3;
    _r12.i = n4;
    _r13.i = n5 ? 1 : 0;
    _r0.i = _r11.i * _r12.i;
    _r1_o = new global::org.xmlvm._nArrayAdapter<int>(new int[_r0.i]);
    _r2.i = 0;
    _r0_o = _r8_o;
    _r3.i = _r9.i;
    _r4.i = _r10.i;
    _r5.i = _r11.i;
    _r6.i = _r12.i;
    ((global::com.codename1.ui.Image) _r0_o).getRGB((global::org.xmlvm._nArrayAdapter<int>) _r1_o, (int) _r2.i, (int) _r3.i, (int) _r4.i, (int) _r5.i, (int) _r6.i);
    _r7_o = new global::com.codename1.ui.Image();
    _r0_o = global::com.codename1.ui.Display.getInstance();
    _r0_o = ((global::com.codename1.ui.Display) _r0_o).getImplementation();
    _r0_o = ((global::com.codename1.impl.CodenameOneImplementation) _r0_o).createImage((global::org.xmlvm._nArrayAdapter<int>) _r1_o, (int) _r11.i, (int) _r12.i);
    ((global::com.codename1.ui.Image) _r7_o).@this((global::java.lang.Object) _r0_o);
    _r0.i = ((global::com.codename1.ui.Image) _r8_o)._fopaque ? 1 : 0;
    ((global::com.codename1.ui.Image) _r7_o)._fopaque = 0!=_r0.i;
    _r0.i = ((global::com.codename1.ui.Image) _r8_o)._fopaqueTested ? 1 : 0;
    ((global::com.codename1.ui.Image) _r7_o)._fopaqueTested = 0!=_r0.i;
    return (global::com.codename1.ui.Image) _r7_o;
//XMLVM_END_WRAPPER[com.codename1.ui.Image: com.codename1.ui.Image subImage(int, int, int, int, boolean)]
}
コード例 #7
0
ファイル: Image.cs プロジェクト: shannah/CN1WindowsPort
public virtual global::System.Object scaledImpl(int n1, int n2){
//XMLVM_BEGIN_WRAPPER[com.codename1.ui.Image: com.codename1.ui.Image scaledImpl(int, int)]
    global::org.xmlvm._nElement _r0;
    global::System.Object _r0_o = null;
    global::org.xmlvm._nElement _r1;
    global::System.Object _r1_o = null;
    global::org.xmlvm._nElement _r2;
    global::System.Object _r2_o = null;
    global::org.xmlvm._nElement _r3;
    global::System.Object _r3_o = null;
    global::org.xmlvm._nElement _r4;
    global::System.Object _r4_o = null;
    global::org.xmlvm._nElement _r5;
    global::System.Object _r5_o = null;
    global::org.xmlvm._nElement _r6;
    global::System.Object _r6_o = null;
    global::org.xmlvm._nElement _r7;
    global::System.Object _r7_o = null;
    global::org.xmlvm._nElement _r8;
    global::System.Object _r8_o = null;
    global::org.xmlvm._nExceptionAdapter _ex = null;
    _r6_o = this;
    _r7.i = n1;
    _r8.i = n2;
    _r3.i = -1;
    if (_r7.i != _r3.i) goto label8;
    _r3_o = ((global::com.codename1.ui.Image) _r6_o).scaledHeight((int) _r8.i);
    label7:;
    return (global::com.codename1.ui.Image) _r3_o;
    label8:;
    if (_r8.i != _r3.i) goto label15;
    _r3_o = ((global::com.codename1.ui.Image) _r6_o).scaledWidth((int) _r7.i);
    goto label7;
    label15:;
    _r0_o = new global::com.codename1.ui.geom.Dimension();
    ((global::com.codename1.ui.geom.Dimension) _r0_o).@this((int) _r7.i, (int) _r8.i);
    _r2_o = ((global::com.codename1.ui.Image) _r6_o).getCachedImage((global::com.codename1.ui.geom.Dimension) _r0_o);
    if (_r2_o == null) goto label28;
    _r3_o = _r2_o;
    goto label7;
    label28:;
    _r3_o = ((global::com.codename1.ui.Image) _r6_o)._fsvgData;
    if (_r3_o == null) goto label85;
    try {
    _r3_o = ((global::com.codename1.ui.Image) _r6_o)._fsvgBaseURL;
    _r4.i = ((global::com.codename1.ui.Image) _r6_o)._fanimated ? 1 : 0;
    _r5_o = ((global::com.codename1.ui.Image) _r6_o)._fsvgData;
    _r2_o = global::com.codename1.ui.Image.createSVG((global::java.lang.String) _r3_o, 0!=_r4.i, (global::org.xmlvm._nArrayAdapter<sbyte>) _r5_o);
    }
    catch (global::System.Exception e) {
 global::org.xmlvm._nExceptionAdapter ex = e as global::org.xmlvm._nExceptionAdapter ?? new global::org.xmlvm._nExceptionAdapter(e.ToString(), e.ToJavaException());
        global::System.Object _java_exception = ex.getJavaException();
        if (_java_exception is global::java.io.IOException) {
            _ex = ex;
            goto label75;
        }
        throw ex;
    } // end catch
    label42:;
    _r3_o = ((global::com.codename1.ui.Image) _r6_o)._fscaleCache;
    ((global::com.codename1.ui.Image) _r2_o)._fscaleCache = (global::java.lang.Object) _r3_o;
    ((global::com.codename1.ui.Image) _r2_o).scale((int) _r7.i, (int) _r8.i);
    _r3.i = ((global::com.codename1.ui.Image) _r6_o)._ftransform;
    ((global::com.codename1.ui.Image) _r2_o)._ftransform = _r3.i;
    _r3.i = ((global::com.codename1.ui.Image) _r6_o)._fanimated ? 1 : 0;
    ((global::com.codename1.ui.Image) _r2_o)._fanimated = 0!=_r3.i;
    _r3_o = ((global::com.codename1.ui.Image) _r6_o)._fsvgBaseURL;
    ((global::com.codename1.ui.Image) _r2_o)._fsvgBaseURL = (global::java.lang.String) _r3_o;
    _r3_o = ((global::com.codename1.ui.Image) _r6_o)._fsvgData;
    ((global::com.codename1.ui.Image) _r2_o)._fsvgData = (global::org.xmlvm._nArrayAdapter<sbyte>) _r3_o;
    _r3_o = new global::com.codename1.ui.geom.Dimension();
    ((global::com.codename1.ui.geom.Dimension) _r3_o).@this((int) _r7.i, (int) _r8.i);
    ((global::com.codename1.ui.Image) _r6_o).cacheImage((global::com.codename1.ui.geom.Dimension) _r3_o, (global::com.codename1.ui.Image) _r2_o);
    _r3_o = _r2_o;
    goto label7;
    label75:;
    _r3_o = _ex.getJavaException();
    _ex = null;
    _r1_o = _r3_o;
    _r2_o = new global::com.codename1.ui.Image();
    _r3_o = ((global::com.codename1.ui.Image) _r6_o)._fimage;
    ((global::com.codename1.ui.Image) _r2_o).@this((global::java.lang.Object) _r3_o);
    goto label42;
    label85:;
    _r2_o = new global::com.codename1.ui.Image();
    _r3_o = ((global::com.codename1.ui.Image) _r6_o)._fimage;
    ((global::com.codename1.ui.Image) _r2_o).@this((global::java.lang.Object) _r3_o);
    goto label42;
//XMLVM_END_WRAPPER[com.codename1.ui.Image: com.codename1.ui.Image scaledImpl(int, int)]
}
コード例 #8
0
ファイル: Image.cs プロジェクト: shannah/CN1WindowsPort
public static global::System.Object createImage(global::org.xmlvm._nArrayAdapter<sbyte> n1, int n2, int n3){
//XMLVM_BEGIN_WRAPPER[com.codename1.ui.Image: com.codename1.ui.Image createImage(byte[], int, int)]
    global::org.xmlvm._nElement _r0;
    global::System.Object _r0_o = null;
    global::org.xmlvm._nElement _r1;
    global::System.Object _r1_o = null;
    global::org.xmlvm._nElement _r2;
    global::System.Object _r2_o = null;
    global::org.xmlvm._nElement _r3;
    global::System.Object _r3_o = null;
    global::org.xmlvm._nElement _r4;
    global::System.Object _r4_o = null;
    global::org.xmlvm._nElement _r5;
    global::System.Object _r5_o = null;
    global::org.xmlvm._nElement _r6;
    global::System.Object _r6_o = null;
    global::org.xmlvm._nElement _r7;
    global::System.Object _r7_o = null;
    global::org.xmlvm._nExceptionAdapter _ex = null;
    _r5_o = n1;
    _r6.i = n2;
    _r7.i = n3;
    try {
    _r2_o = global::com.codename1.ui.Display.getInstance();
    _r2_o = ((global::com.codename1.ui.Display) _r2_o).getImplementation();
    _r1_o = ((global::com.codename1.impl.CodenameOneImplementation) _r2_o).createImage((global::org.xmlvm._nArrayAdapter<sbyte>) _r5_o, (int) _r6.i, (int) _r7.i);
    if (_r1_o != null) goto label65;
    _r2_o = new global::java.lang.IllegalArgumentException();
    _r3_o = new global::java.lang.StringBuilder();
    ((global::java.lang.StringBuilder) _r3_o).@this();
    // Value=create image failed for the given image data of length: 
    _r4_o = new global::java.lang.String();
    ((global::java.lang.String)_r4_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)99)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 109)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 103)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 102)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 108)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 100)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 102)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 104)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 103)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 118)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 109)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 103)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 100)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 102)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 108)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 103)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 104)), unchecked((char) unchecked((uint) 58)), unchecked((char) unchecked((uint) 32))}));
    _r3_o = ((global::java.lang.StringBuilder) _r3_o).append((global::java.lang.String) _r4_o);
    _r3_o = ((global::java.lang.StringBuilder) _r3_o).append((int) _r7.i);
    _r3_o = ((global::java.lang.StringBuilder) _r3_o).toString();
    ((global::java.lang.IllegalArgumentException) _r2_o).@this((global::java.lang.String) _r3_o);
    throw new global::org.xmlvm._nExceptionAdapter((global::java.lang.IllegalArgumentException) _r2_o);
    }
    catch (global::System.Exception e) {
 global::org.xmlvm._nExceptionAdapter ex = e as global::org.xmlvm._nExceptionAdapter ?? new global::org.xmlvm._nExceptionAdapter(e.ToString(), e.ToJavaException());
        global::System.Object _java_exception = ex.getJavaException();
        if (_java_exception is global::java.lang.OutOfMemoryError) {
            _ex = ex;
            goto label39;
        }
        throw ex;
    } // end catch
    label39:;
    _r2_o = _ex.getJavaException();
    _ex = null;
    _r0_o = _r2_o;
    global::java.lang.System.gc();
    global::java.lang.System.gc();
    _r2_o = new global::com.codename1.ui.Image();
    _r3_o = global::com.codename1.ui.Display.getInstance();
    _r3_o = ((global::com.codename1.ui.Display) _r3_o).getImplementation();
    _r3_o = ((global::com.codename1.impl.CodenameOneImplementation) _r3_o).createImage((global::org.xmlvm._nArrayAdapter<sbyte>) _r5_o, (int) _r6.i, (int) _r7.i);
    ((global::com.codename1.ui.Image) _r2_o).@this((global::java.lang.Object) _r3_o);
    label64:;
    return (global::com.codename1.ui.Image) _r2_o;
    label65:;
    try {
    _r2_o = new global::com.codename1.ui.Image();
    ((global::com.codename1.ui.Image) _r2_o).@this((global::java.lang.Object) _r1_o);
    }
    catch (global::System.Exception e) {
 global::org.xmlvm._nExceptionAdapter ex = e as global::org.xmlvm._nExceptionAdapter ?? new global::org.xmlvm._nExceptionAdapter(e.ToString(), e.ToJavaException());
        global::System.Object _java_exception = ex.getJavaException();
        if (_java_exception is global::java.lang.OutOfMemoryError) {
            _ex = ex;
            goto label39;
        }
        throw ex;
    } // end catch
    goto label64;
//XMLVM_END_WRAPPER[com.codename1.ui.Image: com.codename1.ui.Image createImage(byte[], int, int)]
}
コード例 #9
0
ファイル: Image.cs プロジェクト: shannah/CN1WindowsPort
public static global::System.Object createImage(int n1, int n2, int n3){
//XMLVM_BEGIN_WRAPPER[com.codename1.ui.Image: com.codename1.ui.Image createImage(int, int, int)]
    global::org.xmlvm._nElement _r0;
    global::System.Object _r0_o = null;
    global::org.xmlvm._nElement _r1;
    global::System.Object _r1_o = null;
    global::org.xmlvm._nElement _r2;
    global::System.Object _r2_o = null;
    global::org.xmlvm._nElement _r3;
    global::System.Object _r3_o = null;
    global::org.xmlvm._nElement _r4;
    global::System.Object _r4_o = null;
    global::org.xmlvm._nElement _r5;
    global::System.Object _r5_o = null;
    global::org.xmlvm._nExceptionAdapter _ex = null;
    _r3.i = n1;
    _r4.i = n2;
    _r5.i = n3;
    try {
    _r1_o = new global::com.codename1.ui.Image();
    _r2_o = global::com.codename1.ui.Display.getInstance();
    _r2_o = ((global::com.codename1.ui.Display) _r2_o).getImplementation();
    _r2_o = ((global::com.codename1.impl.CodenameOneImplementation) _r2_o).createMutableImage((int) _r3.i, (int) _r4.i, (int) _r5.i);
    ((global::com.codename1.ui.Image) _r1_o).@this((global::java.lang.Object) _r2_o);
    }
    catch (global::System.Exception e) {
 global::org.xmlvm._nExceptionAdapter ex = e as global::org.xmlvm._nExceptionAdapter ?? new global::org.xmlvm._nExceptionAdapter(e.ToString(), e.ToJavaException());
        global::System.Object _java_exception = ex.getJavaException();
        if (_java_exception is global::java.lang.OutOfMemoryError) {
            _ex = ex;
            goto label18;
        }
        throw ex;
    } // end catch
    label17:;
    return (global::com.codename1.ui.Image) _r1_o;
    label18:;
    _r1_o = _ex.getJavaException();
    _ex = null;
    _r0_o = _r1_o;
    global::java.lang.System.gc();
    global::java.lang.System.gc();
    _r1_o = new global::com.codename1.ui.Image();
    _r2_o = global::com.codename1.ui.Display.getInstance();
    _r2_o = ((global::com.codename1.ui.Display) _r2_o).getImplementation();
    _r2_o = ((global::com.codename1.impl.CodenameOneImplementation) _r2_o).createMutableImage((int) _r3.i, (int) _r4.i, (int) _r5.i);
    ((global::com.codename1.ui.Image) _r1_o).@this((global::java.lang.Object) _r2_o);
    goto label17;
//XMLVM_END_WRAPPER[com.codename1.ui.Image: com.codename1.ui.Image createImage(int, int, int)]
}
コード例 #10
0
ファイル: Image.cs プロジェクト: shannah/CN1WindowsPort
public static global::System.Object createImage(global::java.lang.Object n1){
//XMLVM_BEGIN_WRAPPER[com.codename1.ui.Image: com.codename1.ui.Image createImage(java.lang.Object)]
    global::org.xmlvm._nElement _r0;
    global::System.Object _r0_o = null;
    global::org.xmlvm._nElement _r1;
    global::System.Object _r1_o = null;
    global::org.xmlvm._nExceptionAdapter _ex = null;
    _r1_o = n1;
    _r0_o = new global::com.codename1.ui.Image();
    ((global::com.codename1.ui.Image) _r0_o).@this((global::java.lang.Object) _r1_o);
    return (global::com.codename1.ui.Image) _r0_o;
//XMLVM_END_WRAPPER[com.codename1.ui.Image: com.codename1.ui.Image createImage(java.lang.Object)]
}
コード例 #11
0
ファイル: Image.cs プロジェクト: shannah/CN1WindowsPort
public virtual global::System.Object modifyAlpha(sbyte n1, int n2){
//XMLVM_BEGIN_WRAPPER[com.codename1.ui.Image: com.codename1.ui.Image modifyAlpha(byte, int)]
    global::org.xmlvm._nElement _r0;
    global::System.Object _r0_o = null;
    global::org.xmlvm._nElement _r1;
    global::System.Object _r1_o = null;
    global::org.xmlvm._nElement _r2;
    global::System.Object _r2_o = null;
    global::org.xmlvm._nElement _r3;
    global::System.Object _r3_o = null;
    global::org.xmlvm._nElement _r4;
    global::System.Object _r4_o = null;
    global::org.xmlvm._nElement _r5;
    global::System.Object _r5_o = null;
    global::org.xmlvm._nElement _r6;
    global::System.Object _r6_o = null;
    global::org.xmlvm._nElement _r7;
    global::System.Object _r7_o = null;
    global::org.xmlvm._nElement _r8;
    global::System.Object _r8_o = null;
    global::org.xmlvm._nElement _r9;
    global::System.Object _r9_o = null;
    global::org.xmlvm._nElement _r10;
    global::System.Object _r10_o = null;
    global::org.xmlvm._nElement _r11;
    global::System.Object _r11_o = null;
    global::org.xmlvm._nElement _r12;
    global::System.Object _r12_o = null;
    global::org.xmlvm._nElement _r13;
    global::System.Object _r13_o = null;
    global::org.xmlvm._nElement _r14;
    global::System.Object _r14_o = null;
    global::org.xmlvm._nElement _r15;
    global::System.Object _r15_o = null;
    global::org.xmlvm._nExceptionAdapter _ex = null;
    _r13_o = this;
    _r14.i = n1;
    _r15.i = n2;
    _r12.i = -16777216;
    _r11.i = 16777215;
    _r2.i = 0;
    _r15.i = _r15.i & _r11.i;
    _r5.i = ((global::com.codename1.ui.Image) _r13_o).getWidth();
    _r6.i = ((global::com.codename1.ui.Image) _r13_o).getHeight();
    _r10.i = _r5.i * _r6.i;
    _r1_o = new global::org.xmlvm._nArrayAdapter<int>(new int[_r10.i]);
    _r0_o = _r13_o;
    _r3.i = _r2.i;
    _r4.i = _r2.i;
    ((global::com.codename1.ui.Image) _r0_o).getRGB((global::org.xmlvm._nArrayAdapter<int>) _r1_o, (int) _r2.i, (int) _r3.i, (int) _r4.i, (int) _r5.i, (int) _r6.i);
    _r0.i = _r14.i << (0x1f & 24);
    _r7.i = _r0.i & _r12.i;
    _r9.i = 0;
    label30:;
    if (_r9.i >= _r10.i) goto label53;
    _r0.i = ((global::org.xmlvm._nArrayAdapter<int>) _r1_o)[_r9.i];
    _r0.i = _r0.i & _r12.i;
    if (_r0.i == 0) goto label50;
    _r0.i = ((global::org.xmlvm._nArrayAdapter<int>) _r1_o)[_r9.i];
    _r0.i = _r0.i & _r11.i;
    _r0.i = _r0.i | _r7.i;
    ((global::org.xmlvm._nArrayAdapter<int>) _r1_o)[_r9.i] = _r0.i;
    _r0.i = ((global::org.xmlvm._nArrayAdapter<int>) _r1_o)[_r9.i];
    _r0.i = _r0.i & _r11.i;
    if (_r15.i != _r0.i) goto label50;
    ((global::org.xmlvm._nArrayAdapter<int>) _r1_o)[_r9.i] = _r2.i;
    label50:;
    _r9.i = _r9.i + 1;
    goto label30;
    label53:;
    _r8_o = new global::com.codename1.ui.Image();
    ((global::com.codename1.ui.Image) _r8_o).@this((global::org.xmlvm._nArrayAdapter<int>) _r1_o, (int) _r5.i, (int) _r6.i);
    _r0.i = 1;
    ((global::com.codename1.ui.Image) _r8_o)._fopaqueTested = 0!=_r0.i;
    ((global::com.codename1.ui.Image) _r8_o)._fopaque = 0!=_r2.i;
    return (global::com.codename1.ui.Image) _r8_o;
//XMLVM_END_WRAPPER[com.codename1.ui.Image: com.codename1.ui.Image modifyAlpha(byte, int)]
}