Struct lodepng::ffi::Info
[-]
[+]
[src]
pub struct Info {
pub compression_method: c_uint,
pub filter_method: c_uint,
pub interlace_method: c_uint,
pub color: ColorMode,
pub background_defined: c_uint,
pub background_r: c_uint,
pub background_g: c_uint,
pub background_b: c_uint,
pub time_defined: c_uint,
pub time: Time,
pub phys_defined: c_uint,
pub phys_x: c_uint,
pub phys_y: c_uint,
pub phys_unit: c_uint,
// some fields omitted
}Information about the PNG image, except pixels, width and height
Fields
Methods
impl Info
fn new() -> Info
fn clear_text(&mut self)
use this to clear the texts again after you filled them in
fn add_text(&mut self, key: *const c_char, str: *const c_char) -> Error
push back both texts at once
fn clear_itext(&mut self)
use this to clear the itexts again after you filled them in
fn add_itext(&mut self, key: *const c_char, langtag: *const c_char, transkey: *const c_char, str: *const c_char) -> Error
push back the 4 texts of 1 chunk at once