net.liftmodules.imaging

ImageResizer

class ImageResizer extends AnyRef

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ImageResizer
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ImageResizer(renderingHintsMap: Map[Key, Any], multiStepDownScale: Boolean)

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  8. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  11. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  12. def getImageFromStream(is: InputStream): ImageWithMetaData

  13. def getOrientation(imageBytes: Array[Byte]): Box[ImageOrientation.Value]

  14. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  15. def imageToBytes(format: ImageOutFormat.Value, image: BufferedImage, jpegQuality: Float): Array[Byte]

  16. def imageToStream(format: ImageOutFormat.Value, image: BufferedImage): InputStream

  17. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  18. def max(orientation: Box[ImageOrientation.Value], originalImage: BufferedImage, maxWidth: Int, maxHeight: Int): BufferedImage

    Resize to maximum dimension preserving the aspect ratio.

    Resize to maximum dimension preserving the aspect ratio. 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

  19. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  22. def removeAlphaChannel(metaImage: ImageWithMetaData, backgroundColor: Color = Color.WHITE): ImageWithMetaData

    Remove alpha channel fix color error by replace transparent color by backgroundColor, fix for png image export

    Remove alpha channel fix color error by replace transparent color by backgroundColor, fix for png image export

    metaImage
    backgroundColor
    returns

  23. val renderingHints: RenderingHints

  24. def resize(orientation: Box[ImageOrientation.Value], img: BufferedImage, targetWidth: Int, targetHeight: Int): BufferedImage

    Algorithm adapted from example in Filthy Rich Clients http://filthyrichclients.

    Algorithm adapted from example in Filthy Rich Clients http://filthyrichclients.org/ Resize an image and account of its orientation. This will not preserve aspect ratio.

  25. def scaledMaxDim(width: Int, height: Int, maxWidth: Int, maxHeight: Int): (Int, Int)

  26. def square(orientation: Box[ImageOrientation.Value], originalImage: BufferedImage, max: Int): BufferedImage

    Resize to a square Will preserve the aspect ratio of the original and than center crop the larger dimension.

    Resize to a square Will preserve the aspect ratio of the original and than center crop the larger dimension. 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)

  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  28. def toString(): String

    Definition Classes
    AnyRef → Any
  29. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  30. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  31. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any

Ungrouped