Package java.awt.image

Examples of java.awt.image.RenderedImage


        KernelJAI unRotatedKernel =
            (KernelJAI)paramBlock.getObjectParameter(0);
        KernelJAI kJAI = unRotatedKernel.getRotatedKernel();

  RenderedImage source = paramBlock.getRenderedSource(0);

        return new LCErodeOpImage(source,
                                  extender,
                                  renderHints,
                                  layout,
View Full Code Here


        }

  if (!modeName.equalsIgnoreCase("rendered"))
      return true;

  RenderedImage src = args.getRenderedSource(0);

        double[][] matrix = (double[][])args.getObjectParameter(0);
        SampleModel sm = src.getSampleModel();
        int rowLength = sm.getNumBands() + 1;

        if (matrix.length < 1) {
            message.append(getName() + ": " +
                           "bad matrix dimensions");
View Full Code Here

        }
    }

    private void createEditControls() {
        Dimension size = getSize();
        RenderedImage image = engine.getRendering(size);
        editEngine = EngineFactory.createEngine(image);
        editControls = new EditorControls(editEngine);
    }
View Full Code Here

        writeFileHeader();

  Iterator iter = encodeParam.getExtraImages();
  if(iter != null) {
            int ifdOffset = 8;
      RenderedImage nextImage = im;
            TIFFEncodeParam nextParam = encodeParam;
            boolean hasNext;
            do {
                hasNext = iter.hasNext();
                ifdOffset = encode(nextImage, nextParam, ifdOffset, !hasNext);
View Full Code Here

        // Paint the image centered inside the insets
        AffineTransform imageXform = getImageXform(rect, insets, imageSize);

        // Avoid pushing scaling transforms in drawRenderedImage, it is really slow...
        RenderedImage xformedImage = image;
        if (!imageXform.isIdentity()) {
            RenderingHints extenderHints = new RenderingHints(JAI.KEY_BORDER_EXTENDER,
                                                              BorderExtender.createInstance(BorderExtender.BORDER_COPY));
            ParameterBlock params = new ParameterBlock();
            params.addSource(image);
View Full Code Here

            ImageDatum datum = datums.get(index);
            if (datum == null) {
                // A race; the image disappeared during painting.
                continue;
            }
            RenderedImage image = datum.getImage(this);

            // This queue prevents GC of recently painted images:
            recentImages.add(image);

            Rectangle rect = getBounds(index);
View Full Code Here

        return key.longValue() >>> 32;
    }
*/
    /** Returns a string representation of the class object. */
    public String toString() {
        RenderedImage o = (RenderedImage) getOwner();
        String ostring = o == null ? "null" : o.toString();

        Raster t = getTile();
        String tstring = t == null ? "null" : t.toString();

        return getClass().getName() + "@" + Integer.toHexString(hashCode()) +
View Full Code Here

        // values below are actually stored in the TIFF directory.
        //
        final ImageMetadataDirectory dir =
            imageInfo.getMetadata().getDirectoryFor( TIFFDirectory.class );
        if ( dir != null ) {
            final RenderedImage image = JPEGImageType.getImageFromBuffer(
                imageInfo.getByteBuffer(),
                dir.getValue( CANON_CR2_PREVIEW_IMAGE_START ), 0,
                dir.getValue( CANON_CR2_PREVIEW_IMAGE_LENGTH ),
                maxWidth, maxHeight
            );
View Full Code Here

public class ActivityMeterTest {

    public static void main(String[] args) throws IOException {

        RenderedImage image = ImageIO.read(new File(args[0]));
        JComponent comp = new ImageComponent(image);

        final ActivityMeter meter = new ActivityMeter(comp);

        Thread thread = new Thread(
View Full Code Here

     */
    public RenderedImage getPreviewImage( ImageInfo imageInfo, int maxWidth,
                                          int maxHeight )
        throws BadImageFileException, IOException, UnknownImageTypeException
    {
        final RenderedImage image = TIFFImageType.getJPEGInterchangeImage(
            imageInfo, maxWidth, maxHeight
        );
        return  image != null &&
                // The following is a hack to support NRW files
                image.getWidth() > 300 &&
                image.getHeight() > 300 ?
                image : super.getPreviewImage( imageInfo, maxWidth, maxHeight );
    }
View Full Code Here

TOP

Related Classes of java.awt.image.RenderedImage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.