public Graphics3DAddExtrusionInstruction addText(String text, double thickness, AppearanceDefinition yoAppearance) { Graphics3DAddExtrusionInstruction instruction = new Graphics3DAddExtrusionInstruction(text, thickness, yoAppearance); graphics3DInstructions.add(instruction); return instruction; }
public Graphics3DAddExtrusionInstruction addText(String text, double thickness, AppearanceDefinition yoAppearance) { Graphics3DAddExtrusionInstruction instruction = new Graphics3DAddExtrusionInstruction(text, thickness, yoAppearance); graphics3DInstructions.add(instruction); return instruction; }
/** * Create an extrusion of a BufferedImage. Black pixels of the image are extruded. * A pixel is considered black when (red+green+blue)/3 < 60 * * @param bufferedImageToExtrude BufferedImage to extrude * @param thickness Thinkness of extrusion * @param appearance Appearance */ public Graphics3DAddExtrusionInstruction addExtrusion(BufferedImage bufferedImageToExtrude, double thickness, AppearanceDefinition appearance) { Graphics3DAddExtrusionInstruction instruction = new Graphics3DAddExtrusionInstruction(bufferedImageToExtrude, thickness, appearance); graphics3DInstructions.add(instruction); return instruction; }
/** * Create an extrusion of a BufferedImage. Black pixels of the image are extruded. * A pixel is considered black when (red+green+blue)/3 < 60 * * @param bufferedImageToExtrude BufferedImage to extrude * @param thickness Thinkness of extrusion * @param appearance Appearance */ public Graphics3DAddExtrusionInstruction addExtrusion(BufferedImage bufferedImageToExtrude, double thickness, AppearanceDefinition appearance) { Graphics3DAddExtrusionInstruction instruction = new Graphics3DAddExtrusionInstruction(bufferedImageToExtrude, thickness, appearance); graphics3DInstructions.add(instruction); return instruction; }