-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCanvasMajongLogo.java
More file actions
33 lines (28 loc) · 903 Bytes
/
CanvasMajongLogo.java
File metadata and controls
33 lines (28 loc) · 903 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package net.minecraft.src;
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.IOException;
import javax.imageio.ImageIO;
class CanvasMajongLogo extends Canvas
{
public CanvasMajongLogo()
{
try
{
logo = ImageIO.read((PanelCrashReport.class).getResource("/gui/logo.png"));
}
catch(IOException ioexception) { }
byte byte0 = 100;
setPreferredSize(new Dimension(byte0, byte0));
setMinimumSize(new Dimension(byte0, byte0));
}
public void paint(Graphics g)
{
super.paint(g);
g.drawImage(logo, getWidth() / 2 - logo.getWidth() / 2, 32, null);
}
private BufferedImage logo;
}