Package com.pegaa.uploader.ui.filelist.item

Examples of com.pegaa.uploader.ui.filelist.item.ImageItem


    }

    private ListItem createListItem(File f)
    {
         if(this.policy.getPolicyType() == ImageUploadPolicy.POLICY_TYPE_IMG){
             return new ImageItem(this.configHolder, f);
         }else{
             return new FileItem(this.configHolder, f);
         }
    }
View Full Code Here


        int curIndex = 0;
        int len = this.listItemUIs.size();
        while(this.cancelLoading != true && curIndex<len)
        {
                ListItem item = this.listItemUIs.get(curIndex).getItem();
                ImageItem imgItem = (ImageItem)item;
                imgItem.init();
                curIndex++;
        }
       
    }
View Full Code Here

        BufferedImage image = null;
        ByteArrayOutputStream baos = null;
        ByteArrayInputStream bais = null;
        InputStreamInfo info = null;

        ImageItem imgItem = (ImageItem) item;

        try {
            image = javax.imageio.ImageIO.read(item.getFile());

            //Raz - modify this to send out the filename in an overloaded
            //function of getScaledImageAndRotated
            //in com.pegaa.uploader.tools.ImageFuncs
            File rtmpf = item.getFile();
            String rfilename = rtmpf.getName();
            String rext = rfilename.substring(rfilename.lastIndexOf('.') + 1, rfilename.length());

            image = getScaledImageAndRotated(image, imgItem.getRotationStatus(), rext);

            baos = ImageFuncs.createImageOutputStream(image, rext);

            byte[] resultImageAsRawBytes = baos.toByteArray();
            bais = new ByteArrayInputStream(resultImageAsRawBytes, 0, resultImageAsRawBytes.length);
View Full Code Here

TOP

Related Classes of com.pegaa.uploader.ui.filelist.item.ImageItem

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.