MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::Pdf::ImageParams Struct Reference

Parameters to adding image from file. More...

#include <MRPdf.h>

Public Types

enum class  UniformScale { None , FromWidth , FromHeight , Auto }
 set height to keep same scale as width scale More...
 
enum class  AlignmentVertical { Top , Center , Bottom }
 

Public Attributes

Vector2f size
 
std::string caption
 caption if not empty - add caption under marks (if exist) or image.
 
enum MR::Pdf::ImageParams::UniformScale uniformScale = UniformScale::None
 
enum MR::Pdf::ImageParams::AlignmentVertical alignmentVertical = AlignmentVertical::Top
 
AlignmentHorizontal alignmentHorizontal = AlignmentHorizontal::Left
 

Detailed Description

Parameters to adding image from file.

Member Enumeration Documentation

◆ AlignmentVertical

Enumerator
Top 
Center 
Bottom 

◆ UniformScale

set height to keep same scale as width scale

Enumerator
None 
FromWidth 
FromHeight 
Auto 

Member Data Documentation

◆ alignmentHorizontal

AlignmentHorizontal MR::Pdf::ImageParams::alignmentHorizontal = AlignmentHorizontal::Left

◆ alignmentVertical

enum MR::Pdf::ImageParams::AlignmentVertical MR::Pdf::ImageParams::alignmentVertical = AlignmentVertical::Top

◆ caption

std::string MR::Pdf::ImageParams::caption

caption if not empty - add caption under marks (if exist) or image.

◆ size

Vector2f MR::Pdf::ImageParams::size

image size in page space if == {0, 0} - use image size if .x or .y < 0 use the available page size from the current cursor position (caption size is also accounted for)

◆ uniformScale

enum MR::Pdf::ImageParams::UniformScale MR::Pdf::ImageParams::uniformScale = UniformScale::None

The documentation for this struct was generated from the following file: