Home » Developing U++ » U++ Developers corner » RichEdit::PixelMode
RichEdit::PixelMode [message #61260] |
Tue, 17 December 2024 15:57 |
 |
mirek
Messages: 14261 Registered: November 2005
|
Ultimate Member |
|
|
This new mode is created on request to "represent pasted images 1:1 pixel perfect", so basically it displays all units in pixels everywhere. Well, HD pixels...
Also, ruler is gone and the width of text is not constant.
This runs into problems with UHD mode - I guess we want relative text to image size to stay constant regardless whether text was created in UHD or HD. Which unfortunately leads to image rescaling anyway (UHD inserted image has to be rescaled to 50% to be 1:1 in UHD and stay the same relative size to text). Not quite happy about it yet, but I do not see any other way...
Well, maybe at least the scale should change between UHD and HD - I mean, UHD inserted image now has to be scaled to 50% to stay pixel perfect in UHD, while HD image has to be scaled 100% to be pixel perfect in HD. Maybe the percent should change depending on UHD/HD mode?
I mean, image inserted in UHD would be pixel perfect at 100% in UHD, but the same text in HD would display it as 50% ?
Also, when resizing UHD displayed in HD down, there is perhaps little can do to improve, but we are now using filtering rescale to resize HD image 2x up in UHD. Maybe just use simple maginify 2x (I mean, resize to copy each pixel to 2x2 pixels) instead?
pixelmode branch
upptst/RichTextPixelMode
|
|
|
Goto Forum:
Current Time: Thu Jun 12 13:03:43 CEST 2025
Total time taken to generate the page: 0.04918 seconds
|