Package com.lightcrafts.image.metadata

Examples of com.lightcrafts.image.metadata.ImageMetadata$ProviderComparator


    // 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


            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

    }

    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

            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

    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

    {
        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

     */
    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

            )
        );
        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

    }

    public static void reOpen(ComboFrame frame) {
        Document doc = frame.getDocument();
        File file = doc.getFile();
        ImageMetadata meta = doc.getMetadata();
        OtherApplication otherApp = (OtherApplication) doc.getSource();
        if (file != null) {
            open(file, frame, otherApp);
        }
        else {
            open(meta.getFile(), frame, otherApp);
        }
    }
View Full Code Here

                        return null;
                    }
                    hunted = true;
                }
                ImageInfo imageFileInfo = ImageInfo.getInstanceFor(imageFile);
                ImageMetadata meta = imageFileInfo.getMetadata();

                // Read the saved document:
                doc = new Document(xml, meta, info, cancel);
                if (hunted) {
                    doc.markDirty();
                }
            }
            DocumentDatabase.addDocumentFile(file);
        }
        else {
            // Maybe it's an image:
            ImageInfo info = ImageInfo.getInstanceFor(file);
            ImageMetadata meta = info.getMetadata();
            ImageType type = info.getImageType();

            // Maybe set up a template with default tools:
            XmlDocument xml = null;
View Full Code Here

TOP

Related Classes of com.lightcrafts.image.metadata.ImageMetadata$ProviderComparator

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.