| 1 |
// Copyright 2002, FreeHEP. |
| 2 |
package org.freehep.graphicsio.emf.gdi; |
| 3 |
|
| 4 |
import java.io.IOException; |
| 5 |
|
| 6 |
import org.freehep.graphicsio.emf.EMFInputStream; |
| 7 |
import org.freehep.graphicsio.emf.EMFOutputStream; |
| 8 |
|
| 9 |
/** |
| 10 |
* EMF BitmapInfo |
| 11 |
* |
| 12 |
* @author Mark Donszelmann |
| 13 |
* @version $Id: freehep-graphicsio-emf/src/main/java/org/freehep/graphicsio/emf/gdi/BitmapInfo.java 63c8d910ece7 2007/01/20 15:30:50 duns $ |
| 14 |
*/ |
| 15 |
public class BitmapInfo { |
| 16 |
|
| 17 |
private BitmapInfoHeader header; |
| 18 |
|
| 19 |
public BitmapInfo(BitmapInfoHeader header) { |
| 20 |
this.header = header; |
| 21 |
} |
| 22 |
|
| 23 |
public BitmapInfo(EMFInputStream emf) throws IOException { |
| 24 |
header = new BitmapInfoHeader(emf); |
| 25 |
// colormap not necessary for true color image |
| 26 |
} |
| 27 |
|
| 28 |
public void write(EMFOutputStream emf) throws IOException { |
| 29 |
header.write(emf); |
| 30 |
// colormap not necessary for true color image |
| 31 |
} |
| 32 |
|
| 33 |
public String toString() { |
| 34 |
return " BitmapInfo\n" + header.toString(); |
| 35 |
} |
| 36 |
|
| 37 |
public BitmapInfoHeader getHeader() { |
| 38 |
return header; |
| 39 |
} |
| 40 |
} |