pub struct IvgColorProfile { /* private fields */ }Expand description
CorelDRAW 对象的后期绑定包装(颜色配置文件)。
所有属性与方法通过 IDispatch::Invoke 按名称调用,调用失败时一般返回 None 或 false。
Implementations§
Source§impl IvgColorProfile
impl IvgColorProfile
Sourcepub fn manufacturer(&self) -> Option<String>
pub fn manufacturer(&self) -> Option<String>
读取 COM 属性 Manufacturer。
Sourcepub fn device_model(&self) -> Option<String>
pub fn device_model(&self) -> Option<String>
读取设备模型(DeviceModel)。
Sourcepub fn device_type(&self) -> Option<i64>
pub fn device_type(&self) -> Option<i64>
读取设备类型(DeviceType)。
Sourcepub fn color_model(&self) -> Option<i64>
pub fn color_model(&self) -> Option<i64>
读取颜色模型(ColorModel)。
Sourcepub fn create_color_context(
&self,
rendering_intent: i32,
) -> Option<IvgColorContext>
pub fn create_color_context( &self, rendering_intent: i32, ) -> Option<IvgColorContext>
用当前 profile + 渲染意图创建 ColorContext
Sourcepub fn is_same(&self, other: &IvgColorProfile) -> Option<bool>
pub fn is_same(&self, other: &IvgColorProfile) -> Option<bool>
是否相同(COM 方法 IsSame)。
Sourcepub fn as_variant(&self) -> Variant
pub fn as_variant(&self) -> Variant
把底层 COM 对象包装成 VARIANT,用于传给其它 COM 调用。
Auto Trait Implementations§
impl !Send for IvgColorProfile
impl !Sync for IvgColorProfile
impl Freeze for IvgColorProfile
impl RefUnwindSafe for IvgColorProfile
impl Unpin for IvgColorProfile
impl UnsafeUnpin for IvgColorProfile
impl UnwindSafe for IvgColorProfile
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
Mutably borrows from an owned value. Read more