Hi,
Thank very much for sending the prompt reply.
I think I wasn't able to clear my point properly. I am able to send the image back to client quite succesfully. But the issue is I need to send the cropped image which should match exactly the current extend of the Map. I need to determine the offset just like in javascript using esri.TileUtils.getCandidateTileInfo
var delta = this.map._visibleDelta ? this.map._visibleDelta : this.map.__visibleDelta;
"OffsetX": candidateTileInfo.tile.offsets.x - delta.x + (this.width / 2)
"OffsetY": candidateTileInfo.tile.offsets.y - delta.y + (this.height / 2)
Thanks and Best Regards
Rouf