static PetscErrorCode PetscDrawPixelToCoordinate_Image(PetscDraw draw,int i,int j,PetscReal *x,PetscReal *y) { PetscImage img = (PetscImage)draw->data; PetscFunctionBegin; if (x) *x = ITRANS(draw,img,i); if (y) *y = JTRANS(draw,img,j); PetscFunctionReturn(0); }
PetscErrorCode PetscDrawPixelToCoordinate_X(PetscDraw draw,PetscInt i,PetscInt j,PetscReal *x,PetscReal *y) { PetscDraw_X* XiWin = (PetscDraw_X*)draw->data; PetscFunctionBegin; *x = ITRANS(draw,XiWin,i); *y = JTRANS(draw,XiWin,j); PetscFunctionReturn(0); }