aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/BufferedImage.h
diff options
context:
space:
mode:
authordaoge_cmd <3523206925@qq.com>2026-03-01 12:16:08 +0800
committerdaoge_cmd <3523206925@qq.com>2026-03-01 12:16:08 +0800
commitb691c43c44ff180d10e7d4a9afc83b98551ff586 (patch)
tree3e9849222cbc6ba49f2f1fc6e5fe7179632c7390 /Minecraft.Client/BufferedImage.h
parentdef8cb415354ac390b7e89052a50605285f1aca9 (diff)
Initial commit
Diffstat (limited to 'Minecraft.Client/BufferedImage.h')
-rw-r--r--Minecraft.Client/BufferedImage.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/Minecraft.Client/BufferedImage.h b/Minecraft.Client/BufferedImage.h
new file mode 100644
index 00000000..a0227fe2
--- /dev/null
+++ b/Minecraft.Client/BufferedImage.h
@@ -0,0 +1,33 @@
+#pragma once
+using namespace std;
+
+class Graphics;
+class DLCPack;
+
+class BufferedImage
+{
+private:
+ int *data[10]; // Arrays for mipmaps - NULL if not used
+ int width;
+ int height;
+ void ByteFlip4(unsigned int &data); // 4J added
+public:
+ static const int TYPE_INT_ARGB = 0;
+ static const int TYPE_INT_RGB = 1;
+ BufferedImage(int width,int height,int type);
+ BufferedImage(const wstring& File, bool filenameHasExtension = false, bool bTitleUpdateTexture=false, const wstring &drive =L""); // 4J added
+ BufferedImage(DLCPack *dlcPack, const wstring& File, bool filenameHasExtension = false ); // 4J Added
+ BufferedImage(BYTE *pbData, DWORD dwBytes); // 4J added
+ ~BufferedImage();
+
+ int getWidth();
+ int getHeight();
+ void getRGB(int startX, int startY, int w, int h, intArray out,int offset,int scansize, int level = 0); // 4J Added level param
+ int *getData(); // 4J added
+ int *getData(int level); // 4J added
+ Graphics *getGraphics();
+ int getTransparency();
+ BufferedImage *getSubimage(int x, int y, int w, int h);
+
+ void preMultiplyAlpha();
+}; \ No newline at end of file