Examples of ImageLoader


Examples of com.aelitis.azureus.ui.swt.imageloader.ImageLoader

   * @since 4.0.0.5
   */
  private void disposeSkin() {
    numSkins--;
    for (Iterator<ImageLoader> iter = mapImageLoaders.values().iterator(); iter.hasNext();) {
      ImageLoader loader = iter.next();
      loader.unLoadImages();
    }
    if (ourSkinProperties) {
      //skinProperties.dispose();
    }
  }
View Full Code Here

Examples of com.emitrom.lienzo.client.core.types.ImageLoader

        m_destinationWidth = (int) Math.round(m_picture.getClippedImageDestinationWidth());

        m_destinationHeight = (int) Math.round(m_picture.getClippedImageDestinationHeight());

        new ImageLoader(url)
        {
            @Override
            public void onLoaded(ImageLoader image)
            {
                Console.log("loaded " + url + " time=" + (System.currentTimeMillis() - start));

                m_imageJSO = image.getJSO();

                if (m_width == 0)
                {
                    m_width = image.getWidth();
                }
                if (m_height == 0)
                {
                    m_height = image.getHeight();
                }
                if (m_destinationWidth == 0)
                {
                    m_destinationWidth = m_width;
                }
                if (m_destinationHeight == 0)
                {
                    m_destinationHeight = m_height;
                }
                if (false == m_picture.isListening())
                {
                    doneLoading();

                    return;
                }
                // Prepare the Image for the Selection Layer.
                // Get ImageData of the image by drawing it in a temporary canvas...

                ScratchCanvas scratch = new ScratchCanvas(m_destinationWidth, m_destinationHeight);

                Context2D context = scratch.getContext();

                context.drawImage(m_imageJSO, m_x, m_y, m_width, m_height, 0, 0, m_destinationWidth, m_destinationHeight);

                ImageData imageData = context.getImageData(0, 0, m_destinationWidth, m_destinationHeight);

                // Now draw the image again, replacing each color with the color key

                scratch.clear();

                Color rgb = Color.fromColorString(m_picture.getColorKey());

                context.putImageData(new RGBIgnoreAlphaImageDataFilter(rgb.getR(), rgb.getG(), rgb.getB()).filter(imageData, true), 0, 0);

                // Load the resulting image from the temporary canvas into the selection Image

                String dataURL = scratch.toDataURL();

                new ImageLoader(dataURL)
                {
                    @Override
                    public void onLoaded(ImageLoader image)
                    {
                        m_selectionImageJSO = image.getJSO();
View Full Code Here

Examples of net.sourceforge.dsnk.logic.ImageLoader

  private boolean blurred = false;

  public GradientPanel() {
    super();

    ImageLoader loader = ImageLoader.getInstance();
    try {
      this.logoImage = loader.getImage(ImageLoader.LOGO_IMAGE);
    } catch (IOException e) {
      UOGumpViewer.getLogger().log(Level.SEVERE, "", e);
    }
  }
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.image.painter.ImageLoader

  public OctreeQuantizer(Image im)
  {
    this();

    // first retrieve the pixels
    ImageLoader il = new ImageLoader(im);
    il.start();
    if(!il.waitFor()){
      throw new IllegalArgumentException("Problem loading...");
    }
    int width = im.getWidth(il);
    int height = im.getHeight(il);
    int[] pixels = new int[width*height]; // going to hold all
View Full Code Here

Examples of org.apache.xmlgraphics.image.loader.spi.ImageLoader

                .getImageLoaderFactories(mime);
        if (ilfs != null) {
            for (int i = 0; i < ilfs.length; i++) {
                ImageLoaderFactory ilf = ilfs[i];
                try {
                    final ImageLoader il = ilf.newImageLoader(rawFlavor);
                    if (il instanceof ImageLoaderRawPNG || il instanceof ImageLoaderPNG) {
                        // temporary measure until ImageLoaderRawPNG and ImageLoader PNG handle ICC profiles
                        continue;
                    }
                    final ImageInfo im = new ImageInfo(uri, mime);
                    final Image img = il.loadImage(im, isc);
                    final ICC_Profile icc = img.getICCProfile();
                    // Assume the profile can only be correct if the image could
                    // actually be interpreted.
                    if (img.getColorSpace() != null) {
                        profiles.add(icc);
                    }
                } catch (IllegalArgumentException e) {
                    // Ignore. This imageLoader does not support RAW
                }
                try {
                    final ImageLoader il = ilf.newImageLoader(ImageFlavor.BUFFERED_IMAGE);
                    final ImageInfo im = new ImageInfo(uri, mime);
                    final Image img = il.loadImage(im, isc);
                    final ICC_Profile icc = img.getICCProfile();
                    profiles.add(icc);
                } catch (IllegalArgumentException e) {
                    // Ignore. This imageLoader does not support Buffered.
                }
View Full Code Here

Examples of org.eclipse.swt.graphics.ImageLoader

    /* Bytes Provided */
    if (bytes != null && bytes.length > 0) {
      ByteArrayInputStream inS = null;
      try {
        inS = new ByteArrayInputStream(bytes);
        ImageLoader loader = new ImageLoader();
        ImageData[] imageDatas = loader.load(inS);

        /* Look for the Icon with the best quality */
        if (imageDatas != null)
          imgData = getBestQuality(imageDatas, wHint, hHint);
      } catch (SWTException e) {
View Full Code Here

Examples of org.jemmy.image.ImageLoader

     */
    public ImageFactory getImageFactory() {
        ImageFactory res = (ImageFactory) getProperty(ImageFactory.class);
        if (res == null) {
            ImageCapturer imageCapturer = getImageCapturer();
            ImageLoader imageLoader = getImageLoader();
            if (imageCapturer != null && imageLoader != null) {
                return new ImageFactoryImpl(imageCapturer, imageLoader);
            }
            String factoryClass = (String) getProperty(Wrap.IMAGE_FACTORY_PROPERTY);
            if (factoryClass == null) {
View Full Code Here

Examples of org.jpacman.framework.view.ImageLoader

    /**
     * Actually create the image factory.
     * @throws FactoryException if images can't be found.
     */
    @Before public void setUp() throws FactoryException {
        imf = new ImageLoader();
        imf.loadImages();
    }
View Full Code Here

Examples of org.vietspider.ui.services.ImageLoader

    gridLayout.verticalSpacing = 0;
    gridLayout.marginWidth = 0;
    popup.setLayout(gridLayout);
   
    add = new ImageHyperlink(popup, SWT.CENTER);
    ImageLoader imageLoader = new ImageLoader();
    addNormal = imageLoader.load(popup.getDisplay(), "add2.png");
    addDown = imageLoader.load(popup.getDisplay(), "add3.png");
    add.setImage(addNormal);
    add.addHyperlinkListener(new HyperlinkAdapter(){
      @SuppressWarnings("unused")
      public void linkEntered(HyperlinkEvent e) {
        add.setImage(addNormal);
View Full Code Here

Examples of tripleplay.flump.BinaryFlumpLoader.ImageLoader

    {
        final Library[] libs = new Library[]{null};
        decodeLibrary(json, baseDir, new Callback<Library>() {
            public void onSuccess (Library result) {libs[0] = result;}
            public void onFailure(Throwable cause) {}
        }, new ImageLoader() {
            @Override public Image load (String path) {
                return assets.getImageSync(path);
            }
        });
        return libs[0];
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.