mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-27 19:27:21 -06:00
Part of #394: Appearance of Black › Printing / Exporting draws pure CMYK black as RGB black
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
committed by
bflatastic
co-authored by
Cursor
parent
b5bc8f0d19
commit
b6d14b1fd0
@@ -60,6 +60,9 @@ pub struct RasterExportOptions {
|
||||
pub tga: tga::TgaOptions,
|
||||
/// PSD colour model, layers and profile.
|
||||
pub psd: psd::PsdOptions,
|
||||
/// Appearance of Black › Printing / Exporting › Output All Blacks as Rich Black: pure CMYK
|
||||
/// black (K alone at 100%) becomes RGB black in RGB raster exports (document values unchanged).
|
||||
pub rich_black: bool,
|
||||
}
|
||||
|
||||
impl Default for RasterExportOptions {
|
||||
@@ -76,6 +79,7 @@ impl Default for RasterExportOptions {
|
||||
bmp: bmp::BmpOptions::default(),
|
||||
tga: tga::TgaOptions::default(),
|
||||
psd: psd::PsdOptions::default(),
|
||||
rich_black: false,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -99,6 +103,7 @@ impl RasterExportOptions {
|
||||
precise: true,
|
||||
// Shapes meeting edge to edge leave no seam (#983).
|
||||
supersample: true,
|
||||
rich_black: self.rich_black,
|
||||
..Default::default()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user