Package net.datacrow.util

Examples of net.datacrow.util.DcImageIcon.save()


        } else {
            if (base64 != null) {
                icon = Utilities.base64ToImage(base64);
                String filename = DataCrow.iconsDir + ID + ".png";
                icon.setFilename(filename);
                icon.save();
            }
            icons.put(ID, icon);
        }
       
        if (icon != null && !icon.exists())
View Full Code Here


            }
            icons.put(ID, icon);
        }
       
        if (icon != null && !icon.exists())
            icon.save();
       
        // re-load image if necessary
        if (icon != null)
            icon.setImage(icon.getImage());
       
View Full Code Here

        } else {
            icon = dco.createIcon();
            if (icon != null) {
                String filename = DataCrow.iconsDir + dco.getID() + ".png";
                icon.setFilename(filename);
                icon.save();
            }
            icons.put(dco.getID(), icon);
        }
       
        if (icon != null && !icon.exists())
View Full Code Here

            }
            icons.put(dco.getID(), icon);
        }
       
        if (icon != null && !icon.exists())
            icon.save();
       
        if (icon != null)
            icon.setImage(icon.getImage());
       
        return icon;
View Full Code Here

                SVGtoBufferedImageConverter converter = new SVGtoBufferedImageConverter();
                BufferedImage bi = converter.renderSVG(filename);
                icon = new DcImageIcon(Utilities.getScaledImage(new DcImageIcon(bi), 400, 400));
                filename = File.createTempFile(String.valueOf(Utilities.getUniqueID()), ".png").toString();
                icon.setFilename(filename);
                icon.save();
                bi.flush();
            } else {
                icon = new DcImageIcon(Utilities.getScaledImage(new DcImageIcon(filename), 400, 400));
                pic.setValue(Picture._G_EXTERNAL_FILENAME, filename);
            }
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.