# PetscDrawPixelToCoordinate
given a pixel in a `PetscDraw` returns the coordinate 
## Synopsis
```
#include "petscdraw.h" 
PetscErrorCode PetscDrawPixelToCoordinate(PetscDraw draw, int i, int j, PetscReal *x, PetscReal *y)
```
Not collective


## Input Parameters

- ***draw -*** the draw where the coordinates are defined
- ***i -*** the horizontal pixel location
- ***j -*** the vertical pixel location



## Output Parameters

- ***x -*** the horizontal coordinate
- ***y -*** the vertical coordinate





## See Also
 `PetscDraw`

## Level
developer

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

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/classes/draw/impls/image/drawimage.c.html#PetscDrawPixelToCoordinate_Image">PetscDrawPixelToCoordinate_Image in src/sys/classes/draw/impls/image/drawimage.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/classes/draw/impls/null/drawnull.c.html#PetscDrawPixelToCoordinate_Null">PetscDrawPixelToCoordinate_Null in src/sys/classes/draw/impls/null/drawnull.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/classes/draw/impls/x/xops.c.html#PetscDrawPixelToCoordinate_X">PetscDrawPixelToCoordinate_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/drect.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)  
