forked from 1b-agent/opencadstudio-upstream
Raster images show square pixels when magnified
Raster image textures use nearest magnification; PDF pages and OLE pictures keep bilinear filtering. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
857f2f2e58
commit
46fa08a041
2 files changed
+26
-12
No files matched your search
@@ -109,6 +109,9 @@ pub struct ImageModel {
|
||||
/// (when the entity carries a clip boundary) the triangulated clip polygon
|
||||
/// — so the raster is drawn only inside its clip boundary.
|
||||
pub verts: Vec<ImageQuadVertex>,
|
||||
/// Magnified pixels stay square (raster images); otherwise they blend
|
||||
/// (PDF pages, OLE pictures).
|
||||
pub pixelated: bool,
|
||||
}
|
||||
|
||||
impl ImageModel {
|
||||
@@ -179,6 +182,7 @@ impl ImageModel {
|
||||
corners_low,
|
||||
draw_depth: 0.0,
|
||||
verts,
|
||||
pixelated: true,
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -283,6 +287,7 @@ impl ImageModel {
|
||||
corners_low,
|
||||
draw_depth: 0.0,
|
||||
verts,
|
||||
pixelated: false,
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -363,6 +368,7 @@ impl ImageModel {
|
||||
corners_low,
|
||||
draw_depth: 0.0,
|
||||
verts,
|
||||
pixelated: false,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user