Java ByteBuffer Resize check(BufferedImage image, int resizeWidth, int resizeHeight)

Here you can find the source of check(BufferedImage image, int resizeWidth, int resizeHeight)

Description

check

License

Open Source License

Declaration

private static boolean check(BufferedImage image, int resizeWidth, int resizeHeight) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.awt.image.BufferedImage;

public class Main {
    private static boolean check(BufferedImage image, int resizeWidth, int resizeHeight) {
        return (image.getHeight() > resizeHeight && resizeHeight > 0)
                || (image.getWidth() > resizeWidth && resizeWidth > 0);
    }//from  w w w  .  ja v  a2s. c o m
}

Related

  1. increaseBufferCapatity(ByteBuffer byteBuffer)
  2. increaseByteBuffer(ByteBuffer byteBuffer, int increase)
  3. performResize(BufferedImage source, int newWidth, int newHeight)
  4. resize(ByteBuffer buffer)