blob: 31be533239fa48949edf875c5e241ab8435c7935 (
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
|
package qtrees;
import java.io.IOException;
import java.io.Writer;
/**
* @author Camil Staps, s4498062
*/
public class WhiteLeaf extends QTNode {
@Override
public void fillBitmap(int x, int y, int width, Bitmap bitmap) {
int old_x = x, old_y = y;
for (; x < old_x + width; x++)
for (y = old_y; y < old_y + width; y++)
bitmap.setBit(x, y, true);
}
@Override
public void writeNode(Writer out) throws IOException {
out.write("01");
}
}
|