From b0a37c8d96dfaff00091c3dd15a43227b6ae0221 Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Thu, 3 Dec 2026 11:08:45 -0800 Subject: [PATCH] Preferences: bitmap smoothing help says when each setting applies The two Display Bitmaps as Anti-aliased Images descriptions and the `smoothBitmaps` text in docs/mcp.md now say that the Pixel Preview setting applies while Pixel Preview draws its own pixel raster, and that images inside pattern tiles stay smoothed under both settings. Part of #10712. --- crates/ui-egui/src/canvas/raster.rs | 7 ++++--- crates/ui-egui/src/prefs_dialog/descriptions.rs | 9 +++++++-- docs/mcp.md | 8 +++++--- 3 files changed, 16 insertions(+), 8 deletions(-) diff --git a/crates/ui-egui/src/canvas/raster.rs b/crates/ui-egui/src/canvas/raster.rs index 88933cc0d9..a06c8c4c82 100644 --- a/crates/ui-egui/src/canvas/raster.rs +++ b/crates/ui-egui/src/canvas/raster.rs @@ -326,9 +326,10 @@ pub(super) fn snapped_rect(min: egui::Pos2, size: egui::Vec2, device_ppp: f32) - } /// Whether a view smooths the bitmaps it draws larger than their pixels. While Pixel Preview draws -/// its own raster (a document pixel larger than a screen pixel) it follows File Handling › Display Bitmaps as Anti-aliased Images in Pixel Preview, and in every -/// other view File Handling › Display Bitmaps as Anti-aliased Images. Off, each image pixel shows as -/// a hard-edged square. An image marked pixelated is never smoothed (the renderer checks it). +/// its own pixel raster, it follows File Handling › Display Bitmaps as Anti-aliased Images in Pixel Preview. +/// This requires a document pixel larger than a screen pixel and a region within the display's texture limit. +/// Otherwise it follows File Handling › Display Bitmaps as Anti-aliased Images. Off, each image pixel shows as +/// a hard-edged square, except inside pattern fills. An image marked pixelated is never smoothed (the renderer checks it). pub(super) fn smooth_images(prefs: &vectorcraft_engine::Prefs, pixel_preview: bool) -> bool { if pixel_preview { prefs.anti_aliased_bitmaps } else { prefs.smooth_bitmaps } } diff --git a/crates/ui-egui/src/prefs_dialog/descriptions.rs b/crates/ui-egui/src/prefs_dialog/descriptions.rs index 14e3afc9c5..3e86a59bc4 100644 --- a/crates/ui-egui/src/prefs_dialog/descriptions.rs +++ b/crates/ui-egui/src/prefs_dialog/descriptions.rs @@ -343,10 +343,15 @@ pub(crate) const DESCRIPTIONS: &[(&str, &str)] = &[ "When a document opens, a linked EPS image that shows its saved preview keeps it instead of reading the EPS file again; changed files still follow Update Links.", ), ("pdfImportEmbeddedFonts", "Uses a PDF's embedded glyphs for imported text when its font is missing; off, it uses the fallback font."), - ("smoothBitmaps", "Outside Pixel Preview, images are drawn smoothed; off, their pixels show with hard edges."), + ( + "smoothBitmaps", + "Smooths images unless Pixel Preview draws its own pixel raster and uses the setting below. \ + When off, image pixels have hard edges except inside pattern fills.", + ), ( "antiAliasedBitmaps", - "In Pixel Preview, images are drawn smoothed; off, their pixels show with hard edges. Outside Pixel Preview, the setting above applies.", + "Smooths images while Pixel Preview draws its own pixel raster; otherwise the setting above applies. \ + When off, image pixels have hard edges except inside pattern fills.", ), ( "updateLinks", diff --git a/docs/mcp.md b/docs/mcp.md index c41c961628..31d4056da7 100644 --- a/docs/mcp.md +++ b/docs/mcp.md @@ -10759,9 +10759,11 @@ Printing / Exporting, `accurate` by default) does the same for RGB raster export Print as Bitmap: `rich` draws pure CMYK black as RGB black in the pixels; CMYK ink exports and the document's colours stay as they are. `antiAliasedBitmaps` (off by default; desktop app): in View › Pixel Preview, on softens placed and embedded bitmaps; off, their pixels stay hard-edged. -`smoothBitmaps` (Display Bitmaps as Anti-aliased Images, on by default): the same choice for the canvas in every -view other than Pixel Preview at a zoom where a document pixel is larger than a screen pixel; off, placed and embedded bitmaps drawn larger than their pixels show each pixel as a -hard-edged square. An image marked pixelated is never softened. +`smoothBitmaps` (Display Bitmaps as Anti-aliased Images, on by default): the same choice for the canvas unless +Pixel Preview draws its own pixel raster, which requires a document pixel larger than a screen pixel and a region +within the display's texture limit; off, placed and embedded bitmaps drawn larger than their pixels show each pixel +as a hard-edged square. An image marked pixelated is never softened. Neither preference reaches images inside pattern +tiles, which are drawn smoothed. `pdfTextAs` (Preferences › File Handling › PDF Text, `text` by default; `text` or `outlines`): what the text of a PDF opened or placed embedded from the app becomes when the open or place gives no `textAs` (see `document.open`). `disableAutoAddDelete` (off by default): on, the Pen no longer adds or deletes an anchor when a click lands on a