Examples of ImageMetadata


Examples of com.lightcrafts.image.metadata.ImageMetadata

     */
    public void readMetadata( ImageInfo imageInfo )
        throws BadImageFileException, IOException
    {
        final ImageMetadataReader reader = new TIFFMetadataReader( imageInfo );
        final ImageMetadata metadata = reader.readMetadata();
        MetadataUtil.removePreviewMetadataFrom( metadata );
        MetadataUtil.removeWidthHeightFrom( metadata );
    }
View Full Code Here

Examples of com.lightcrafts.image.metadata.ImageMetadata

            }
            File file = datum.getFile();
            String label = file.getName();
            ImageDatumType type = datum.getType();
            String tag = type.toString();
            ImageMetadata meta = datum.getMetadata(true);
            int rating = meta.getRating();
            boolean selected = selection.isSelected(datum);
            renderer.paint(g, image, label, tag, rating, rect, selected);
        }
        g.setColor(oldColor);
        g.setClip(clip);
View Full Code Here

Examples of com.lightcrafts.image.metadata.ImageMetadata

    // ImageDatumControl calls this when its focus shifts to a new index
    void setup(ImageDatum datum, Rectangle rect) {
        this.datum = datum;
        this.rect = ImageDatumRenderer.getTextRectangle(rect);

        ImageMetadata meta = datum.getMetadata(true);
        int rating = meta.getRating();
        if (rating > 0) {
            stars = rating;
        }
        else {
            // Zero means "unrated"
View Full Code Here

Examples of com.lightcrafts.image.metadata.ImageMetadata

            File file = datum.getFile();
            String label = file.getName();
            ImageDatumType type = datum.getType();
            String tag = type.toString();
            ImageMetadata meta = datum.getMetadata(true);
            int rating = meta.getRating();
            boolean selected = selection.isSelected(datum);
            renderer.paint(g, image, label, tag, rating, rect, selected);

            ImageGroup group = datum.getGroup();
            if (group.isNonTrivial()) {
View Full Code Here

Examples of com.lightcrafts.image.metadata.ImageMetadata

    }

    static String getCacheKeyFor( ImageInfo imageInfo )
        throws BadImageFileException, IOException, UnknownImageTypeException
    {
        final ImageMetadata metadata = imageInfo.getMetadata();
        Date captureDate = metadata.getCaptureDateTime();
        if ( captureDate == null ) {
            final RawImageInfo rawInfo = (RawImageInfo)imageInfo.getAuxiliaryInfo();
            final DCRaw dcRaw = rawInfo.getDCRaw();
            captureDate = dcRaw.getCaptureDateTime();
        }
View Full Code Here

Examples of com.lightcrafts.image.metadata.ImageMetadata

            System.loadLibrary( "MacOSX" );
        }

        File file = new File(args[0]);
        ImageInfo info = ImageInfo.getInstanceFor(file);
        ImageMetadata meta = info.getMetadata();
        Engine engine = EngineFactory.createEngine(meta, null, null);
        Component comp = engine.getComponent();

        JFrame frame;
View Full Code Here

Examples of com.lightcrafts.image.metadata.ImageMetadata

    private JComponent image;

    EngineCroppedImageRenderer(String path) throws Exception {
        File file = new File(path);
        ImageInfo info = ImageInfo.getInstanceFor(file);
        ImageMetadata meta = info.getMetadata();
        engine = EngineFactory.createEngine(meta, null, null);
        image = (JComponent) engine.getComponent();
        image.setOpaque(false);
    }
View Full Code Here

Examples of com.lightcrafts.image.metadata.ImageMetadata

    {
        final LCByteBuffer buf = imageInfo.getByteBuffer();
        try {
            buf.position( 12 );
            if ( buf.getEquals( "Raw", "ASCII" ) ) {
                final ImageMetadata metadata = imageInfo.getCurrentMetadata();
                MetadataUtil.removePreviewMetadataFrom( metadata );
                MetadataUtil.removeWidthHeightFrom( metadata );
                return PhaseOneTIFFRawImageType.INSTANCE;
            }
        }
View Full Code Here

Examples of com.lightcrafts.image.metadata.ImageMetadata

     */
    public ImageType getTrueImageTypeOf( ImageInfo imageInfo )
        throws BadImageFileException, IOException
    {
        try {
            final ImageMetadata metadata = imageInfo.getMetadata();
            final ImageMetaValue qualityValue =
                metadata.getValue( CanonDirectory.class, CANON_CS_QUALITY );
            if ( qualityValue == null )
                return null;
            if ( qualityValue.getIntValue() == CANON_CS_QUALITY_RAW ) {
                MetadataUtil.removePreviewMetadataFrom( metadata );
                MetadataUtil.removeWidthHeightFrom( metadata );
View Full Code Here

Examples of com.lightcrafts.image.metadata.ImageMetadata

            )
        );
        ImageInfo info = ImageInfo.getInstanceFor(
            new File("/Users/anton/test/1/test.crw")
        );
        ImageMetadata meta = info.getMetadata();

        SaveTemplateDialog dialog = new SaveTemplateDialog();
        dialog.showDialog(meta, doc, null, null);

        System.out.println("name=" + dialog.getNameText());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.