WritableImage
Code IndexAdd Codota to your IDE (free)

Best Java code snippets using jxl.write.WritableImage (Showing top 16 results out of 315)

origin: pentaho/pentaho-kettle

 imageStream.read( imageData );
 data.headerImage = new WritableImage( 0, 0, data.headerImageWidth, data.headerImageHeight, imageData );
} catch ( Exception e ) {
 throw new KettleException( e );
origin: net.sourceforge.jexcelapi/jxl

java.io.File imageFile = image.getImageFile();
String fileType = "?";
origin: com.hynnet/jxl

java.io.File imageFile = image.getImageFile();
String fileType = "?";
origin: net.sourceforge.jexcelapi/jxl

 /**
  * Write out the images
  */
 private void writeImageSheet(WritableSheet ws) throws WriteException
 {
  Label l = new Label(0, 0, "Weald & Downland Open Air Museum, Sussex");
  ws.addCell(l);

  WritableImage wi = new WritableImage
   (0, 3, 5, 7, new File("resources/wealdanddownland.png"));
  ws.addImage(wi);

  l = new Label(0, 12, "Merchant Adventurers Hall, York");
  ws.addCell(l);

  wi = new WritableImage(5, 12, 4, 10, 
              new File("resources/merchantadventurers.png"));
  ws.addImage(wi);

  // An unsupported file type
  /*
   wi = new WritableImage(0, 60, 5, 5, new File("resources/somefile.gif"));
   ws.addImage(wi);
  */
 }
}
origin: com.hynnet/jxl

 /**
  * Write out the images
  */
 private void writeImageSheet(WritableSheet ws) throws WriteException
 {
  Label l = new Label(0, 0, "Weald & Downland Open Air Museum, Sussex");
  ws.addCell(l);

  WritableImage wi = new WritableImage
   (0, 3, 5, 7, new File("resources/wealdanddownland.png"));
  ws.addImage(wi);

  l = new Label(0, 12, "Merchant Adventurers Hall, York");
  ws.addCell(l);

  wi = new WritableImage(5, 12, 4, 10, 
              new File("resources/merchantadventurers.png"));
  ws.addImage(wi);

  // An unsupported file type
  /*
   wi = new WritableImage(0, 60, 5, 5, new File("resources/somefile.gif"));
   ws.addImage(wi);
  */
 }
}
origin: org.jboss.seam/jboss-seam-excel

    : uiImage.getRowSpan();
worksheet.addImage(new WritableImage(useStartColumn, useStartRow,
    useColumnSpan, useRowSpan, pngStream.toByteArray()));
origin: org.jxls/jxls-jexcel

public void addImage(AreaRef areaRef, byte[] imageBytes, ImageType imageType) {
  if (imageType == null) {
    throw new IllegalArgumentException("Image type is undefined");
  }
  if (imageType != ImageType.PNG) {
    throw new IllegalArgumentException("Only PNG images are currently supported");
  }
  WritableSheet sheet = writableWorkbook.getSheet(areaRef.getSheetName());
  sheet.addImage(new WritableImage(areaRef.getFirstCellRef().getCol(), areaRef.getFirstCellRef().getRow(),
      areaRef.getLastCellRef().getCol() - areaRef.getFirstCellRef().getCol(),
      areaRef.getLastCellRef().getRow() - areaRef.getFirstCellRef().getRow(), imageBytes));
}
origin: com.hynnet/jxl

if (o instanceof jxl.biff.drawing.Drawing)
 WritableImage wi = new WritableImage
  ((jxl.biff.drawing.Drawing) o, 
   toSheet.getWorkbook().getDrawingGroup());
origin: net.sourceforge.jexcelapi/jxl

if (o instanceof jxl.biff.drawing.Drawing)
 WritableImage wi = new WritableImage
  ((jxl.biff.drawing.Drawing) o, 
   toSheet.getWorkbook().getDrawingGroup());
origin: jasperreports/jasperreports

new WritableImage(
  col - emptyCols,
  row,
origin: net.sourceforge.jexcelapi/jxl

WritableImage wi = new WritableImage
 (dr[i].getX(), dr[i].getY(), 
  dr[i].getWidth(), dr[i].getHeight(),
origin: com.hynnet/jxl

WritableImage wi = new WritableImage
 (dr[i].getX(), dr[i].getY(), 
  dr[i].getWidth(), dr[i].getHeight(),
origin: net.sourceforge.jexcelapi/jxl

WritableImage wi = new WritableImage
 (dr[i], toSheet.getWorkbook().getDrawingGroup());
drawings.add(wi);
origin: com.hynnet/jxl

WritableImage wi = new WritableImage
 (dr[i], toSheet.getWorkbook().getDrawingGroup());
drawings.add(wi);
origin: net.sourceforge.jexcelapi/jxl

sheet.removeImage(wi);
wi = new WritableImage(1, 116, 2, 9, 
            new File("resources/littlemoretonhall.png"));
sheet.addImage(wi);
origin: com.hynnet/jxl

sheet.removeImage(wi);
wi = new WritableImage(1, 116, 2, 9, 
            new File("resources/littlemoretonhall.png"));
sheet.addImage(wi);
jxl.writeWritableImage

Javadoc

Allows an image to be created, or an existing image to be manipulated Note that co-ordinates and dimensions are given in cells, so that if for example the width or height of a cell which the image spans is altered, the image will have a correspondign distortion

Most used methods

  • <init>
    Constructor, used when copying sheets
  • getImageFile
    Accessor for the image file

Popular in Java

  • Making http post requests using okhttp
  • onCreateOptionsMenu (Activity)
  • scheduleAtFixedRate (Timer)
  • getContentResolver (Context)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • JComboBox (javax.swing)

For IntelliJ IDEA,
Android Studio or Eclipse

  • Search for JavaScript code betaCodota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutBlogContact Us
  • Plugin user guideTerms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)