/** * * Copyright (c) 2014 CoderKiss * * CoderKiss[AT]gmail.com * */ package com.kisstools.utils; public class ImageSize { public static final String TAG = "ImageSize"; private int mWidth; private int mHeight; public ImageSize(ImageSize size) { this.mWidth = size.mWidth; this.mHeight = size.mHeight; } public ImageSize(int width, int height) { mWidth = width; mHeight = height; } public void setWidth(int width) { this.mWidth = width; } public int getWidth() { return this.mWidth; } public void setHeight(int height) { this.mHeight = height; } public int getHeight() { return this.mHeight; } @Override public String toString() { return mWidth + "x" + mHeight; } public static final boolean valid(ImageSize size) { if (size != null && size.getWidth() > 0 && size.getHeight() > 0) { return true; } else { return false; } } }
ImageSize 常用类
最新推荐文章于 2024-08-10 07:29:51 发布