net.liftweb.imaging.ImageResizer

object ImageResizer

object ImageResizer

 extends ImageResizer




Companion: ImageResizer

Source: ImageResizer.scala(63)

 Constructors

def this

 Fields

renderingHints.. val renderingHints RenderingHints ImageResizer

 Methods

!=.. final def !=(arg0 : Object) Boolean AnyRef
!=.. final def !=(arg0 : Any) Boolean Any
==.. final def ==(arg0 : Any) Boolean Any
==.. final def ==(arg0 : Object) Boolean AnyRef
asInstanceOf.. final def asInstanceOf[T0] T0 Any
clone.. protected def clone Object AnyRef
eq.. final def eq(arg0 : Object) Boolean AnyRef
equals.. def equals(arg0 : Any) Boolean AnyRef
finalize.. protected def finalize Unit AnyRef
getClass.. final def getClass Class[Any] AnyRef
getImageFromStream.. def getImageFromStream(is : InputStream) ImageWithMetaData ImageResizer
getOrientation.. def getOrientation(imageBytes : Array[Byte]) Option[Value] ImageResizer
hashCode.. def hashCode Int AnyRef
imageToStream.. def imageToStream(format : Value, image : BufferedImage) InputStream ImageResizer
isInstanceOf.. final def isInstanceOf[T0] Boolean Any
max.. def max(orientation : Option[Value], originalImage : BufferedImage, maxWidth : Int, maxHeight : Int)
Resize to maximum dimension preserving the aspect ratio [details]
This is basically equivalent to what you would expect by setting "max-width" and "max-height" CSS attributes but will scale up an image if necessary
BufferedImage ImageResizer
ne.. final def ne(arg0 : Object) Boolean AnyRef
notify.. final def notify Unit AnyRef
notifyAll.. final def notifyAll Unit AnyRef
resize.. def resize(orientation : Option[Value], img : BufferedImage, targetWidth : Int, targetHeight : Int)
Algorithm adapted from example in Filthy Rich Clients http://filthyrichclients [details]
org/ Resize an image and account of its orientation. This will not preserve aspect ratio.
BufferedImage ImageResizer
scaledMaxDim.. def scaledMaxDim(width : Int, height : Int, maxWidth : Int, maxHeight : Int) (Int, Int) ImageResizer
square.. def square(orientation : Option[Value], originalImage : BufferedImage, max : Int)
Resize to a square Will preserve the aspect ratio of the original and than center crop the larger dimension [details]
A image of (200w,240h) squared to (100) will first resize to (100w,120h) and then take then crop 10 pixels from the top and bottom of the image to produce (100w,100h)
BufferedImage ImageResizer
synchronized.. final def synchronized[T0](arg0 : T0) T0 AnyRef
toString.. def toString String AnyRef
wait.. final def wait(arg0 : Long, arg1 : Int) Unit AnyRef
wait.. final def wait(arg0 : Long) Unit AnyRef
wait.. final def wait Unit AnyRef
Copyright (c) 2006-2010 WorldWide Conferencing, LLC. All Rights Reserved.