can i limit the resolution of fullscreen mode?
limit view
-
-
hmm.... interesting question.
-
Hi,
how do you mean what?
best regards,
Klaus -
Hi,
the question is:
We have a very large image to be shown but we don't want that the user can see an area bigger than 1920x1080 in fullscreen mode.
(We need a borderless black background and the 1920x1080 image in the center)
If the resolution is lower than 1920x1080, normal behaviour is ok.
I hope my explanation is clear now
Thanks in advance
Budpull
-
Hi,
please have a look at the "fix-aspect" examples from the viewer download package,
there you have a fixed aspect of 16:9 and by adding a few lines to the "fixaspectresize" action
you can limit the size also to 1920x1080,e.g. try that:
Code
Display More<action name="fixaspectresize"> div(aspect,%1,%2); mul(destwidth, stagewidth, aspect); copy(destheight, stagewidth); if(destwidth GT stagewidth, div(dwnscale,stagewidth,destwidth), set(dwnscale,1.0) ); mul(destwidth, destwidth, dwnscale); mul(destheight, destheight, dwnscale); if(destheight GT stageheight, div(dwnscale,stageheight,destheight), set(dwnscale,1.0) ); mul(destwidth, destwidth, dwnscale); mul(destheight, destheight, dwnscale); if(destwidth GT 1920, div(dwnscale,1920,destwidth), set(dwnscale,1.0) ); mul(destwidth, destwidth, dwnscale); mul(destheight, destheight, dwnscale); if(destheight GT 1080, div(dwnscale,1080,destheight), set(dwnscale,1.0) ); mul(destwidth, destwidth, dwnscale); mul(destheight, destheight, dwnscale); sub(destx, stagewidth, destwidth); sub(desty, stageheight, destheight); mul(destx, destx, 0.5); mul(desty, desty, 0.5); copy(area.x, destx); copy(area.y, desty); copy(area.width, destwidth); copy(area.height, destheight); </action>
best regards,
Klaus -
Thanks !!!
We'll let you know ...
Best regards
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!