Skip to main content
summaryrefslogtreecommitdiffstats
blob: f05f523650a531477a85ed7d34cfc1d93c493a76 (plain) (blame)
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
								Image tmp = new Image(display, rect.width,
										rect.height);
								try
								{
									ImageData tmpData = tmp.getImageData();
									for (int y = 0; y < rect.height; y++)
									{
										for (int x = 0; x < rect.width; x++)
										{
											int val;
											val = (x << TestImage.WIDTH_BITS);
											val |= y;
											//											tmpData.setPixels(x, y, val);
											tmpData.setPixels(x, y, 0);
										}
									}
									GC dc = new GC(testImage);
									try
									{
										dc.drawImage(tmp, 0, 0);
									}
									finally
									{
										dc.dispose();
									}
								}
								finally
								{
									tmp.dispose();
								}

Back to the top