struct Tessell::Text::ColorBitmap

Overview

预乘 RGBA,行优先、y 向下。pixels 长度 = wh4。

Defined in:

tessell/text/color_glyph.cr

Constructors

Instance Method Summary

Constructor Detail

def self.empty : ColorBitmap #

[View source]
def self.new(w : Int32, h : Int32, bearing_x : Int32, bearing_y : Int32, advance_px : Float32, pixels : Slice(UInt8)) #

[View source]

Instance Method Detail

def advance_px : Float32 #

[View source]
def bearing_x : Int32 #

[View source]
def bearing_y : Int32 #

[View source]
def h : Int32 #

[View source]
def pixels : Bytes #

[View source]
def w : Int32 #

[View source]