summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2026-01-20 17:08:08 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2026-01-20 17:08:08 +0100
commitd30ca1866463c4091c3e0bcf5ca730f409ddc78d (patch)
tree58ca3251c14a1578a4a4bd525e6777d654485673 /FL
parent4644521f8ccce4d55585d33bd8d4c7b822a12e40 (diff)
Improve docu of member variable Fl_SVG_Image::proportional - cont'd (#1361)
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl_SVG_Image.H6
1 files changed, 4 insertions, 2 deletions
diff --git a/FL/Fl_SVG_Image.H b/FL/Fl_SVG_Image.H
index a7e706cac..f1dd7095e 100644
--- a/FL/Fl_SVG_Image.H
+++ b/FL/Fl_SVG_Image.H
@@ -31,10 +31,12 @@ struct NSVGimage;
if the file could not be opened or read, and ERR_FORMAT if the SVG format could not be decoded.
If the image has loaded correctly, w(), h(), and d() should return values greater than zero.
+ Member \ref proportional of an Fl_SVG_Image object must be set to \c false to allow the image
+ object to be rasterized with an altered aspect ratio.
+
Rasterization is not done until the image is first drawn or resize() or normalize() is called. Therefore,
\ref array is NULL until then. The delayed rasterization ensures an Fl_SVG_Image is always rasterized
- to the exact screen resolution at which it is drawn. Member \ref proportional of an Fl_SVG_Image object
- must be set to \c false to allow this image to be rasterized with an altered aspect ratio.
+ to the exact screen resolution at which it is drawn.
The Fl_SVG_Image class draws images computed by \c nanosvg with the following known limitations