return defineBits;
}
public static DefineSprite buildSprite(String name, JPEGImage image)
{
TagList taglist = new TagList();
try
{
DefineBits defineBits = build(image);
taglist.defineBitsJPEG2(defineBits);
DefineShape ds3 = ImageShapeBuilder.buildImage(defineBits, image.getWidth(), image.getHeight());
taglist.defineShape3(ds3);
PlaceObject po2 = new PlaceObject(ds3, 1);
po2.setMatrix(new Matrix());
// po2.setName(name);
taglist.placeObject2(po2);
}
catch (IOException ex)
{
throw new RuntimeException("Error reading JPEG image " + image.getLocation() + ". " + ex.getMessage());
}