Photo Album: Better Image Layout, help needed

Enes Ateş enes at enesates.com
Thu Mar 26 14:32:40 PDT 2015


Hi,

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.

I found some code pointers about CropHandlers [1] [2]. But I need some help
to use on my code.
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.

Thanks for your help.

[1]
http://opengrok.libreoffice.org/xref/core/svx/source/svdraw/svdograf.cxx#1429
[2]
http://opengrok.libreoffice.org/xref/core/svx/source/svdraw/svdmrkv.cxx#764

-- 

Enes Ateş
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20150326/89830454/attachment.html>


More information about the LibreOffice mailing list