On 14.08.2007, at 10:44, Stephan Beck wrote:
@thumb = image.crop!(Magick::CenterGravity, thumb_width, thumb_height)
wird mir ein Thumbnail eines Bildes erstellt, dass einen Ausschnitt
aus der Mitte des Bildes nimmt.
Ich benötige aber
1. den Ausschnitt oben zentriert
2. einen Ausschnitt ab x,y als Startpunkt links oben.
Wie muß dazu jeweils der Aufruf aussehen?
image.crop(x, y, width, height) -> anImage
image.crop(gravity, x, y, width, height) -> anImage
image.crop(gravity, width, height) -> anImage
The crop method can be called three different ways:
1. Without a gravity argument:
x, y
The x- and y-offset of the rectangle relative to the upper-
left corner of the image
width, height
The width and height of the rectangle.
...
Hier gibts doch sicher ne Menge ImageMagick-Cracks ;-)
Vor allem gibt's ne Menge RMagick docs. Liegen im RMagick Gem-
Verzeichnis unter docs/.
-- Andreas
_______________________________________________
rubyonrails-ug mailing list
[email protected]
http://mailman.headflash.com/mailman/listinfo/rubyonrails-ug