[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Marking squares
From: |
joakim |
Subject: |
Re: Marking squares |
Date: |
Sat, 02 Feb 2013 09:26:41 +0100 |
User-agent: |
Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux) |
Lars Magne Ingebrigtsen <address@hidden> writes:
> I'm contemplating implementing a very, very simple image editor in
> Emacs, which would mainly just allow image cropping. To do that, it
> would be nice if `mouse-drag-region' would allow highlighting a "box"
> instead of the lines between mark and the mouse position.
>
> So my question is -- does Emacs have an option of highlighting
> rectangles instead of "the region"? It might be useful when using
> commands like `C-x r k', too, perhaps.
>
> I've looked at the code, but I can't find anything obvious
> immediately...
I'm not sure if it's relevant but heres my approach:
https://github.com/jave/dragbox
You view the image wrapped in SVG. Then you can mark a region, drawn
with a svg rectangle, using the mouse. Then you can use the region for
whatever purpose. I use it to select regions for OCR.
--
Joakim Verona