opencv::hub_prelude

Trait TextTrait

Source
pub trait TextTrait: TextTraitConst {
    // Required method
    fn as_raw_mut_Text(&mut self) -> *mut c_void;

    // Provided methods
    fn set_text(&mut self, val: &str) { ... }
    fn set_org(&mut self, val: Point) { ... }
    fn set_ff(&mut self, val: i32) { ... }
    fn set_fs(&mut self, val: f64) { ... }
    fn set_color(&mut self, val: Scalar) { ... }
    fn set_thick(&mut self, val: i32) { ... }
    fn set_lt(&mut self, val: i32) { ... }
    fn set_bottom_left_origin(&mut self, val: bool) { ... }
}
Expand description

Mutable methods for crate::gapi::Text

Required Methods§

Provided Methods§

Source

fn set_text(&mut self, val: &str)

The text string to be drawn

Source

fn set_org(&mut self, val: Point)

The bottom-left corner of the text string in the image

Source

fn set_ff(&mut self, val: i32)

The font type, see #HersheyFonts

Source

fn set_fs(&mut self, val: f64)

The font scale factor that is multiplied by the font-specific base size

Source

fn set_color(&mut self, val: Scalar)

The text color

Source

fn set_thick(&mut self, val: i32)

The thickness of the lines used to draw a text

Source

fn set_lt(&mut self, val: i32)

The line type. See #LineTypes

Source

fn set_bottom_left_origin(&mut self, val: bool)

When true, the image data origin is at the bottom-left corner. Otherwise, it is at the top-left corner

Implementors§