2018-07-25 15:55:03 +08:00
|
|
|
package customskinloader.fake.texture;
|
|
|
|
|
|
2022-07-28 09:24:44 +08:00
|
|
|
import java.io.IOException;
|
|
|
|
|
import java.io.InputStream;
|
|
|
|
|
|
2018-07-25 15:55:03 +08:00
|
|
|
public interface FakeImage {
|
|
|
|
|
FakeImage createImage(int width, int height);
|
|
|
|
|
|
2022-07-28 09:24:44 +08:00
|
|
|
FakeImage createImage(InputStream is) throws IOException;
|
|
|
|
|
|
2018-07-25 15:55:03 +08:00
|
|
|
int getWidth();
|
|
|
|
|
|
|
|
|
|
int getHeight();
|
|
|
|
|
|
|
|
|
|
int getRGBA(int x, int y);
|
|
|
|
|
|
|
|
|
|
void setRGBA(int x, int y, int rgba);
|
|
|
|
|
|
|
|
|
|
void copyImageData(FakeImage image);
|
|
|
|
|
|
|
|
|
|
void fillArea(int x0, int y0, int width, int height);
|
|
|
|
|
|
|
|
|
|
void copyArea(int x0, int y0, int dx, int dy, int width, int height, boolean reversex, boolean reversey);
|
|
|
|
|
|
|
|
|
|
void close();
|
|
|
|
|
}
|