#[non_exhaustive]pub enum SubpixelOrder {
Unknown,
None,
HorizontalRgb,
HorizontalBgr,
VerticalRgb,
VerticalBgr,
}
Expand description
Some output devices (such as LCD panels) display colors by making each pixel consist of smaller “subpixels” that each have a particular color. By using knowledge of the layout of this subpixel components, it is possible to create image content with higher resolution than the pixel grid.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Unknown
the layout of subpixel components for the device is unknown.
None
the device displays colors without geometrically-separated subpixel components, or the positioning or colors of the components do not match any of the values in the enumeration.
HorizontalRgb
the device has horizontally arranged components in the order red-green-blue from left to right.
HorizontalBgr
the device has horizontally arranged components in the order blue-green-red from left to right.
VerticalRgb
the device has vertically arranged components in the order red-green-blue from top to bottom.
VerticalBgr
the device has vertically arranged components in the order blue-green-red from top to bottom.
Trait Implementations§
Source§impl Clone for SubpixelOrder
impl Clone for SubpixelOrder
Source§fn clone(&self) -> SubpixelOrder
fn clone(&self) -> SubpixelOrder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more