pub struct LogColorSpace {
pub signature: u32,
pub version: u32,
pub size: u32,
pub color_space_type: LogicalColorSpace,
pub intent: GamutMappingIntent,
pub endpoints: CIEXYZTriple,
pub gamma_red: u32,
pub gamma_green: u32,
pub gamma_blue: u32,
pub filename: Option<String>,
}Expand description
The LogColorSpace Object specifies a logical color space for the playback device context, which can be the name of a color profile in ASCII characters.
Fields§
§signature: u32Signature (4 bytes): A 32-bit unsigned integer that specifies the signature of color space objects; it MUST be set to the value 0x50534F43, which is the ASCII encoding of the string “PSOC”.
version: u32Version (4 bytes): A 32-bit unsigned integer that defines a version number; it MUST be 0x00000400.
size: u32Size (4 bytes): A 32-bit unsigned integer that defines the size of this object, in bytes.
color_space_type: LogicalColorSpaceColorSpaceType (4 bytes): A 32-bit signed integer that specifies the color space type. It MUST be defined in the LogicalColorSpace Enumeration. If this value is LCS_sRGB or LCS_WINDOWS_COLOR_SPACE, the sRGB color space MUST be used.
intent: GamutMappingIntentIntent (4 bytes): A 32-bit signed integer that defines the gamut mapping intent. It MUST be defined in the GamutMappingIntent Enumeration.
endpoints: CIEXYZTripleEndpoints (36 bytes): A CIEXYZTriple Object that defines the CIE chromaticity x, y, and z coordinates of the three colors that correspond to the RGB endpoints for the logical color space associated with the bitmap. If the ColorSpaceType field does not specify LCS_CALIBRATED_RGB, this field MUST be ignored.
gamma_red: u32GammaRed (4 bytes): A 32-bit fixed point value that defines the toned response curve for red. If the ColorSpaceType field does not specify LCS_CALIBRATED_RGB, this field MUST be ignored.
gamma_green: u32GammaGreen (4 bytes): A 32-bit fixed point value that defines the toned response curve for green. If the ColorSpaceType field does not specify LCS_CALIBRATED_RGB, this field MUST be ignored.
gamma_blue: u32GammaBlue (4 bytes): A 32-bit fixed point value that defines the toned response curve for blue. If the ColorSpaceType field does not specify LCS_CALIBRATED_RGB, this field MUST be ignored.
filename: Option<String>Filename (260 bytes): An optional, ASCII charactger string that specifies the name of a file that contains a color profile. If a file name is specified, and the ColorSpaceType field is set to LCS_CALIBRATED_RGB, the other fields of this structure SHOULD be ignored.
Implementations§
Source§impl LogColorSpace
impl LogColorSpace
Trait Implementations§
Source§impl Clone for LogColorSpace
impl Clone for LogColorSpace
Auto Trait Implementations§
impl Forget for LogColorSpace
impl Freeze for LogColorSpace
impl Move for LogColorSpace
impl RefUnwindSafe for LogColorSpace
impl Send for LogColorSpace
impl Sync for LogColorSpace
impl Unpin for LogColorSpace
impl UnsafeUnpin for LogColorSpace
impl UnwindSafe for LogColorSpace
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
T, using the provided data to resolve any offsets.