Java ByteBuffer Size doThumb(BufferedImage from, int width, int height)

Here you can find the source of doThumb(BufferedImage from, int width, int height)

Description

do Thumb

License

Apache License

Declaration

public static BufferedImage doThumb(BufferedImage from, int width, int height) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.awt.image.BufferedImage;

public class Main {
    public static BufferedImage doThumb(BufferedImage from, int width, int height) {
        BufferedImage to = new BufferedImage(width, height, BufferedImage.TYPE_INT_BGR);
        to.getGraphics().drawImage(from, 0, 0, width, height, null);
        return to;
    }//www  .  j  a  va 2  s.  c  o m
}

Related

  1. cutAndScaleToRoundSquare(BufferedImage src, int size, int radius)
  2. cutAndScaleToSquare(BufferedImage src, int size)
  3. decreaseBufferCapatity(final ByteBuffer byteBuffer, final int size, final int minSize)
  4. decryptData(final ByteBuffer buffer, final int size, final int key)
  5. depthToGrayBufferedImage(int[] depth, int width, int height)
  6. enhance(int size, ByteBuffer bbuf)
  7. ensureBufferCapacity(final int width, final int height, BufferedImage img)
  8. erodeImage(final BufferedImage img, int structElementWidth, int structElementHeight, final int rgbForegroundColor, final int rgbBackgroundColor)
  9. findNewHeight(BufferedImage origImage, double newWidth)