# PetscDrawResizeWindow
Allows one to resize a window from a program. 
## Synopsis
```
#include "petscdraw.h" 
PetscErrorCode PetscDrawResizeWindow(PetscDraw draw, int w, int h)
```
Collective


## Input Parameters

- ***draw -*** the window
- ***w,h -*** the new width and height of the window





## See Also
 `PetscDraw`, `PetscDrawCheckResizedWindow()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/classes/draw/interface/draw.c.html#PetscDrawResizeWindow">src/sys/classes/draw/interface/draw.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/classes/draw/impls/image/drawimage.c.html#PetscDrawResizeWindow_Image">PetscDrawResizeWindow_Image in src/sys/classes/draw/impls/image/drawimage.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/classes/draw/impls/win32/win32draw.c.html#PetscDrawResizeWindow_Win32">PetscDrawResizeWindow_Win32 in src/sys/classes/draw/impls/win32/win32draw.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/classes/draw/impls/x/xops.c.html#PetscDrawResizeWindow_X">PetscDrawResizeWindow_X in src/sys/classes/draw/impls/x/xops.c</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/classes/draw/interface/draw.c)


[Index of all Draw routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
