<div dir="ltr"><div><div><div>Hi,<br><br></div>I started to work on Photo Album: Better Image Layout bug #64575 . Image size calculation is implemented and committed to gerrit. But I haven't finished crop function yet.<br><br></div>I found some code pointers about CropHandlers [1] [2]. But I need some help to use on my code.<br>I am trying to give "rectangular area" information to crop end point. I already have image size and top left corner coordinate for rectangular area. As I understand from code pointers, I should give Rectangle (left, top, right, bottom) to create SdrHandlers. I use SdrHandlers and GraphicObject to create SdrCropHandler. But I don't know exactly how can I create them.<br><br></div>Thanks for your help.<br><div><br>[1] <a href="http://opengrok.libreoffice.org/xref/core/svx/source/svdraw/svdograf.cxx#1429">http://opengrok.libreoffice.org/xref/core/svx/source/svdraw/svdograf.cxx#1429</a><br>[2] <a href="http://opengrok.libreoffice.org/xref/core/svx/source/svdraw/svdmrkv.cxx#764">http://opengrok.libreoffice.org/xref/core/svx/source/svdraw/svdmrkv.cxx#764</a><br clear="all"><div><div><div><div><div><br>-- <br><div class="gmail_signature"><br>Enes Ateş</div>
</div></div></div></div></div></div></div>