
Quote from lolo on May 1, 2025, 1:55 pmМне нежно установить соотношение сторон равное прямоугольнику 118х60mm
I gently set the aspect ratio equal to a rectangle 118x60mm
Мне нежно установить соотношение сторон равное прямоугольнику 118х60mm
I gently set the aspect ratio equal to a rectangle 118x60mm

Quote from luishp on May 1, 2025, 9:04 pm@lolo
Key Concepts
1. Aspect Ratio
Definition: The proportion between width and height of an image, typically expressed as a ratio (e.g., 16:9 or 118:60).
Example: A rectangle that is 118 mm wide and 60 mm high has an aspect ratio of
118 / 60, which simplifies to approximately1.9667.2. Image Size
Definition: The physical dimensions of an image, usually in millimeters (mm), inches, or pixels (depending on context).
Note: VisualNEO Web operates primarily in pixels, so conversions may be needed.
3. Image Resolution
Definition: The number of pixels per inch (ppi or dpi). Higher resolution means more detail.
Use Case: Resolution affects print quality, not screen layout directly. A 300 dpi image will be physically smaller but more detailed than a 72 dpi image of the same pixel dimensions.
How to Use
neoCropfor a 118x60 mm RatioIf your goal is to enforce this proportion during cropping, you must set the aspect ratio accordingly. Since VisualNEO Web works in pixels and not millimeters, you use the ratio directly:
neoCropSetAspectRatio "MyImage" "118/60"
Alternatively, if initializing the cropper:neoCropInitializeEx "MyImage" "118/60" "MyContainer" "1"
You may also export a cropped image with a specific resolution using:
neoCropToBase64Png "MyImage" 1180 600 [resultImage]
This would output an image with a resolution of 1180x600 pixels (or any scaled-up value preserving 118:60 ratio).
Definition: The proportion between width and height of an image, typically expressed as a ratio (e.g., 16:9 or 118:60).
Example: A rectangle that is 118 mm wide and 60 mm high has an aspect ratio of 118 / 60, which simplifies to approximately 1.9667.
Definition: The physical dimensions of an image, usually in millimeters (mm), inches, or pixels (depending on context).
Note: VisualNEO Web operates primarily in pixels, so conversions may be needed.
Definition: The number of pixels per inch (ppi or dpi). Higher resolution means more detail.
Use Case: Resolution affects print quality, not screen layout directly. A 300 dpi image will be physically smaller but more detailed than a 72 dpi image of the same pixel dimensions.
neoCrop for a 118x60 mm RatioIf your goal is to enforce this proportion during cropping, you must set the aspect ratio accordingly. Since VisualNEO Web works in pixels and not millimeters, you use the ratio directly:
neoCropSetAspectRatio "MyImage" "118/60"
neoCropInitializeEx "MyImage" "118/60" "MyContainer" "1"
You may also export a cropped image with a specific resolution using:
neoCropToBase64Png "MyImage" 1180 600 [resultImage]
This would output an image with a resolution of 1180x600 pixels (or any scaled-up value preserving 118:60 ratio).
