@@ -38,7 +38,7 @@ of this software and associated documentation files (the "Software"), to deal
38
38
import android .text .TextUtils ;
39
39
import android .util .Log ;
40
40
41
- public class Cocos2dxBitmap {
41
+ public final class Cocos2dxBitmap {
42
42
// ===========================================================
43
43
// Constants
44
44
// ===========================================================
@@ -76,17 +76,6 @@ public static void setContext(final Context context) {
76
76
private static native void nativeInitBitmapDC (final int width ,
77
77
final int height , final byte [] pixels );
78
78
79
- public static void createTextBitmap (String string , final String fontName ,
80
- final int fontSize , final int alignment , final int width ,
81
- final int height ) {
82
-
83
- createTextBitmapShadowStroke ( string .getBytes (), fontName , fontSize , 255 , 255 , 255 , 255 , // text font and color
84
- alignment , width , height , // alignment and size
85
- false , 0.0f , 0.0f , 0.0f , 0.0f , // no shadow
86
- false , 255 , 255 , 255 , 255 , 0.0f ); // no stroke
87
-
88
- }
89
-
90
79
public static boolean createTextBitmapShadowStroke (byte [] bytes , final String fontName , int fontSize ,
91
80
int fontTintR , int fontTintG , int fontTintB , int fontTintA ,
92
81
int alignment , int width , int height ,
0 commit comments