Packagelaya.webgl.resource
Classpublic class WebGLCharImage
InheritanceWebGLCharImage Inheritance laya.resource.Bitmap
Implements IMergeAtlasBitmap



Public Properties
 PropertyDefined By
  allowMerageInAtlas : Boolean
[read-only] 是否创建私有Source
WebGLCharImage
  atlasSource : *
[read-only]
WebGLCharImage
  borderColor : String
WebGLCharImage
  borderSize : int
WebGLCharImage
  canvas : *
HTML Canvas,绘制字符载体,非私有数据载体
WebGLCharImage
  ch : Number
WebGLCharImage
  char : String
WebGLCharImage
  cw : Number
WebGLCharImage
  enableMerageInAtlas : Boolean
是否创建私有Source
WebGLCharImage
  fillColor : String
WebGLCharImage
  font : String
WebGLCharImage
  fontSize : int
WebGLCharImage
  isSpace : Boolean
WebGLCharImage
  lineWidth : int
WebGLCharImage
  texture : Texture
WebGLCharImage
  underLine : int
WebGLCharImage
  UV : Array
WebGLCharImage
  xs : Number
WebGLCharImage
Public Methods
 MethodDefined By
  
WebGLCharImage(content:String, drawValue:*)
WebGLCharImage依赖于外部canvas,自身并无私有数据载体
WebGLCharImage
  
active():void
WebGLCharImage
  
WebGLCharImage
  
createOneChar(content:String, drawValue:*):WebGLCharImage
[static] 创建单个文字
WebGLCharImage
Protected Methods
 MethodDefined By
  
[override]
WebGLCharImage
Property Detail
allowMerageInAtlasproperty
allowMerageInAtlas:Boolean  [read-only]

是否创建私有Source


Implementation
    public function get allowMerageInAtlas():Boolean
atlasSourceproperty 
atlasSource:*  [read-only]


Implementation
    public function get atlasSource():*
borderColorproperty 
public var borderColor:String

borderSizeproperty 
public var borderSize:int

canvasproperty 
public var canvas:*

HTML Canvas,绘制字符载体,非私有数据载体

chproperty 
public var ch:Number

charproperty 
public var char:String

cwproperty 
public var cw:Number

enableMerageInAtlasproperty 
enableMerageInAtlas:Boolean

是否创建私有Source


Implementation
    public function get enableMerageInAtlas():Boolean
    public function set enableMerageInAtlas(value:Boolean):void
fillColorproperty 
public var fillColor:String

fontproperty 
public var font:String

fontSizeproperty 
public var fontSize:int

isSpaceproperty 
public var isSpace:Boolean

lineWidthproperty 
public var lineWidth:int

textureproperty 
public var texture:Texture

underLineproperty 
public var underLine:int

UVproperty 
public var UV:Array

xsproperty 
public var xs:Number

Constructor Detail
WebGLCharImage()Constructor
public function WebGLCharImage(content:String, drawValue:*)

WebGLCharImage依赖于外部canvas,自身并无私有数据载体

Parameters
content:String
 
drawValue:*
Method Detail
active()method
public function active():void

clearAtlasSource()method 
public function clearAtlasSource():void

createOneChar()method 
public static function createOneChar(content:String, drawValue:*):WebGLCharImage

创建单个文字

Parameters

content:String
 
drawValue:*

Returns
WebGLCharImage
recreateResource()method 
override protected function recreateResource():void