Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
UppHub
Status & Roadmap
FAQ
Authors & License
Forums
Funding U++
Search on this site











SourceForge.net Logo

SourceForge.net Logo

GitHub Logo

Discord Logo

Ultra High Definition Displays support

 

Function List

 

void SetUHDMode(bool b)

Sets the UHD mode.

 


 

bool IsUHDMode()

Returns true if UHD mode is active.

 


 

void SyncUHDMode()

Sets the UHD mode if current GUI font is bigger than 27 pixels (in windows, that corresponds to text size bigger than approximately 160%).

 


 

Image DPI(const Image& img)

Eventually upscales or downscales img based on its UHD flag and current mode. Standard images are upscaled 2x in UHD mode, UHD images are downscaled 2x in standard mode.

 


 

Image DPI(const Image& img, int expected)

Upscales img 2x if its height is less than or equal to expected and UHD mode is active.

 


 

int DPI(int a)

Returns 2 * a if UHD is active and a otherwise.

 


 

Size DPI(Size sz)

Returns 2 * sz if UHD is active and sz otherwise.

 

 

Do you want to contribute?