public final class ImageWindow extends Object
Modifier and Type | Field and Description |
---|---|
Boolean |
alreadyUsed |
int |
flag |
JFrame |
frame |
int |
height |
Mat |
img |
Boolean |
imgToBeResized |
JLabel |
lbl |
String |
name |
Boolean |
positionToBeChanged |
int |
width |
static int |
WINDOW_AUTOSIZE |
static int |
WINDOW_NORMAL |
Boolean |
windowToBeResized |
int |
x |
int |
y |
Constructor and Description |
---|
ImageWindow(String name,
int flag) |
ImageWindow(String name,
Mat img) |
Modifier and Type | Method and Description |
---|---|
static Size |
keepAspectRatioSize(int original_width,
int original_height,
int bound_width,
int bound_height) |
void |
setFrameLabelVisible(JFrame frame,
JLabel lbl) |
void |
setMat(Mat img) |
void |
setNewDimension(int width,
int height) |
void |
setNewPosition(int x,
int y) |
public static final int WINDOW_NORMAL
public static final int WINDOW_AUTOSIZE
public String name
public Mat img
public Boolean alreadyUsed
public Boolean imgToBeResized
public Boolean windowToBeResized
public Boolean positionToBeChanged
public JFrame frame
public JLabel lbl
public int flag
public int x
public int y
public int width
public int height
public ImageWindow(String name, int flag)
public static Size keepAspectRatioSize(int original_width, int original_height, int bound_width, int bound_height)
public void setMat(Mat img)
public void setNewDimension(int width, int height)
public void setNewPosition(int x, int y)
Copyright © 2020. All rights reserved.