{{DISPLAYTITLE:_RESIZEHEIGHT}}
The [[_RESIZEHEIGHT]] function returns the user resized screen pixel height if [[$RESIZE]]:ON allows it and [[_RESIZE (function)|_RESIZE]] returns -1 


{{PageSyntax}}
: {{Parameter|newHeight&amp;}} = [[_RESIZEHEIGHT]]


{{Parameter|Details:}}
* [[_RESIZE (function)|_RESIZE]] function must return true (-1) before the requested screen dimensions can be returned by the function.
* The program should decide if the request is allowable for proper program interaction.


==Availability==
* '''Version 1.000 and up'''.


{{PageExamples}}
''Example:'' Resize the current screen image according to user's request.
{{CodeStart}}
{{Cl|$RESIZE}}:ON

s&amp; = {{Cl|_NEWIMAGE}}(300, 300, 32)
{{Cl|SCREEN}} s&amp;

bee&amp; = {{Cl|_LOADIMAGE}}("qb64_trans.png") 'replace with your own image

{{Cl|DO}}
    {{Cl|IF}} {{Cl|_RESIZE (function)|_RESIZE}} THEN
        oldimage&amp; = s&amp;
        s&amp; = _NEWIMAGE(_RESIZEWIDTH, _RESIZEHEIGHT, 32)
        SCREEN s&amp;
        {{Cl|_FREEIMAGE}} oldimage&amp;
    END IF

    {{Cl|CLS}}

    'Center the QB64 bee image:
    x = {{Cl|_WIDTH (function)|_WIDTH}} / 2 - _WIDTH(bee&amp;) / 2
    y = {{Cl|_HEIGHT}} / 2 - _HEIGHT(bee&amp;) / 2
    {{Cl|_PUTIMAGE}} (x, y), bee&amp;
    {{Cl|_DISPLAY}}
    {{Cl|_LIMIT}} 30
{{Cl|LOOP}}
{{CodeEnd}}


{{PageSeeAlso}}
* [[$RESIZE]]
* [[_RESIZE (function)]]
* [[_RESIZEWIDTH]]


{{PageNavigation}}
