Struct winsafe::co::STRETCH_MODE
source · pub struct STRETCH_MODE(/* private fields */);
kernel
and gdi
only.Expand description
HDC::SetStretchBltMode
mode
(i32
).
Implementations§
source§impl STRETCH_MODE
impl STRETCH_MODE
sourcepub const unsafe fn from_raw(v: i32) -> Self
pub const unsafe fn from_raw(v: i32) -> Self
Constructs a new object by wrapping the given integer value.
§Safety
Be sure the given value is meaningful for the actual type.
sourcepub const fn raw(&self) -> i32
pub const fn raw(&self) -> i32
Returns the primitive integer underlying value.
This method is similar to Into
, but it
is const
, therefore it can be used in
const contexts.
source§impl STRETCH_MODE
impl STRETCH_MODE
sourcepub const BLACKONWHITE: Self = _
pub const BLACKONWHITE: Self = _
Performs a Boolean AND operation using the color values for the eliminated and existing pixels. If the bitmap is a monochrome bitmap, this mode preserves black pixels at the expense of white pixels.
sourcepub const COLORONCOLOR: Self = _
pub const COLORONCOLOR: Self = _
Deletes the pixels. This mode deletes all eliminated lines of pixels without trying to preserve their information.
sourcepub const HALFTONE: Self = _
pub const HALFTONE: Self = _
Maps pixels from the source rectangle into blocks of pixels in the destination rectangle. The average color over the destination block of pixels approximates the color of the source pixels.
After setting the HALFTONE
stretching mode, an application must call
the HDC::SetBrushOrgEx
function to set the brush origin. If it fails to do so, brush
misalignment occurs.
sourcepub const STRETCH_ANDSCANS: Self = _
pub const STRETCH_ANDSCANS: Self = _
Same as BLACKONWHITE
.
sourcepub const STRETCH_ORSCANS: Self = _
pub const STRETCH_ORSCANS: Self = _
Same as WHITEONBLACK
.
sourcepub const STRETCH_DELETESCANS: Self = _
pub const STRETCH_DELETESCANS: Self = _
Same as COLORONCOLOR
.
sourcepub const STRETCH_HALFTONE: Self = _
pub const STRETCH_HALFTONE: Self = _
Same as HALFTONE
.
sourcepub const WHITEONBLACK: Self = _
pub const WHITEONBLACK: Self = _
Performs a Boolean OR operation using the color values for the eliminated and existing pixels. If the bitmap is a monochrome bitmap, this mode preserves white pixels at the expense of black pixels.
Trait Implementations§
source§impl AsRef<i32> for STRETCH_MODE
impl AsRef<i32> for STRETCH_MODE
source§impl Binary for STRETCH_MODE
impl Binary for STRETCH_MODE
source§impl Clone for STRETCH_MODE
impl Clone for STRETCH_MODE
source§fn clone(&self) -> STRETCH_MODE
fn clone(&self) -> STRETCH_MODE
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for STRETCH_MODE
impl Debug for STRETCH_MODE
source§impl Default for STRETCH_MODE
impl Default for STRETCH_MODE
source§fn default() -> STRETCH_MODE
fn default() -> STRETCH_MODE
source§impl Display for STRETCH_MODE
impl Display for STRETCH_MODE
source§impl From<STRETCH_MODE> for i32
impl From<STRETCH_MODE> for i32
source§fn from(v: STRETCH_MODE) -> Self
fn from(v: STRETCH_MODE) -> Self
source§impl Hash for STRETCH_MODE
impl Hash for STRETCH_MODE
source§impl IntUnderlying for STRETCH_MODE
impl IntUnderlying for STRETCH_MODE
source§impl LowerHex for STRETCH_MODE
impl LowerHex for STRETCH_MODE
source§impl Octal for STRETCH_MODE
impl Octal for STRETCH_MODE
source§impl Ord for STRETCH_MODE
impl Ord for STRETCH_MODE
source§impl PartialEq for STRETCH_MODE
impl PartialEq for STRETCH_MODE
source§fn eq(&self, other: &STRETCH_MODE) -> bool
fn eq(&self, other: &STRETCH_MODE) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for STRETCH_MODE
impl PartialOrd for STRETCH_MODE
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more