Sets the image to be used to the given source url.
<br> The same as setImage(), but image is marked as icon class.
190494
public void setIcon(String src) {
        setImage(src);
        if (imageElem != null) {
            imageElem.removeClassName("jqm4gwt-listitem-thumb");
            imageElem.addClassName("jqm4gwt-listitem-icon");
        }
    }
353692
@Override
    public ImageSource apply(ImageSource source) {
        if (radius != 0) {
            if (source.isGrayscale()) {
                return applyGrayscale(source, radius);
            } else {
                return applyRGB(source, radius);
            }
        } else {
            if (source.isGrayscale()) {
                return applyGrayscale(source, kernel);
            } else {
                return applyRGB(source, kernel);
            }
        }
    }
1274994
public Response setImage(String bucket, String srcSiteUrl, String host) throws QiniuException {
        String encodedSiteUrl = UrlSafeBase64.encodeToString(srcSiteUrl);
        String encodedHost = null;
        if (host != null && host.length() > 0) {
            encodedHost = UrlSafeBase64.encodeToString(host);
        }
        String path = String.format("/image/%s/from/%s", bucket, encodedSiteUrl);
        if (encodedHost != null) {
            path += String.format("/host/%s", encodedHost);
        }
        return pubPost(path);
    }
1014241
private void setImageOrPlaceholder(ImageView iv, ImageHolder imageHolder) {
        //cancel previous started image loading processes
        DrawerImageLoader.getInstance().cancelImage(iv);
        //set the placeholder
        iv.setImageDrawable(DrawerImageLoader.getInstance().getImageLoader().placeholder(iv.getContext(), DrawerImageLoader.Tags.PROFILE.name()));
        //set the real image (probably also the uri)
        ImageHolder.applyTo(imageHolder, iv, DrawerImageLoader.Tags.PROFILE.name());
    }
1012731
public static ImageIcon getScaledIcon(URL url) {
		if (url == null) {
			return null;
		}
		return getScaledIcon(new ImageIcon(url));
	}
856500
public EmbedBuilder setAuthor(String name, String url, Icon icon) {
        delegate.setAuthor(name, url, icon);
        return this;
    }
1349504
public void setIcon(final Image IMAGE) {
        if (null == icon) {
            _icon = IMAGE;
            fireSectionEvent(UPDATE_EVENT);
        } else {
            icon.set(IMAGE);
        }
    }
573207
public function setSourceUri( $sourceUri )
	{
		if( !file_exists( $sourceUri ) )
			throw new InvalidArgumentException( 'Image source "'.$sourceUri.'" is not existing' );
		$info = @getimagesize( $sourceUri );
		if( !$info )
			throw new Exception( 'Image source "'.$sourceUri.'" is not of a supported type' );
		$this->sourceUri	= $sourceUri;
		$this->sourceInfo	= $info;
		$this->loadImage();
	}
264719
public ImageIcon retrieveIcon(URL location) throws IconProviderException
	{
		if (!getCache().containsKey(location))
		{
			getCache().put(location, new ImageIcon(location));
		}
		return getCache().get(location);
	}
159547
public void setIconUrl(String v) {
    if (FullTextLink_Type.featOkTst && ((FullTextLink_Type)jcasType).casFeat_iconUrl == null)
      jcasType.jcas.throwFeatMissing("iconUrl", "de.julielab.jules.types.FullTextLink");
    jcasType.ll_cas.ll_setStringValue(addr, ((FullTextLink_Type)jcasType).casFeatCode_iconUrl, v);}
983877
def set_icon(self, icon_url):
        
        log = logging.getLogger(self.cls_logger + '.set_icon')
        if not isinstance(icon_url, basestring):
            msg = 'icon_url arg must be a string'
            log.error(msg)
            raise ValueError(msg)
        self.payload['icon_url'] = icon_url
        log.debug('Set Icon URL to: {u}'.format(u=icon_url))
753433
void setCurrentFavIcon(final byte[] imageData) {

        m_fieldFavIcon.setVisible(true);
        m_fieldUploadFavIcon.setCaption(CmsVaadinUtils.getMessageText(Messages.GUI_SITE_FAVICON_CHANGE_0));
        m_fieldFavIcon.setSource(new StreamResource(new StreamResource.StreamSource() {

            private static final long serialVersionUID = -8868657402793427460L;

            public InputStream getStream() {

                return new ByteArrayInputStream(imageData);
            }
        }, ""));
    }
580897
public void setImage(java.lang.String image) {
        getStateHelper().put(PropertyKeys.image, image);
    }
1253312
public ImageUrlResources imageUrlResources() {
        if (imageUrls.get() == null) {
            imageUrls.compareAndSet(null, new ImageUrlResourcesImpl(this));
        }
        return imageUrls.get();
    }
692812
def set_icon(self, bmp):
        """"""

        _icon = wx.EmptyIcon()
        _icon.CopyFromBitmap(bmp)
        self.SetIcon(_icon)
742163
def set_image(self, img):
        ''''''
        with warnings.catch_warnings():
            warnings.simplefilter('ignore')
            if hasattr(img, 'shape'):
                (width, height) = (img.shape[1], img.shape[0])
                self._bmp = wx.BitmapFromBuffer(width, height, np.uint8(img)) # http://stackoverflow.com/a/16866833/2559632
            elif hasattr(img, 'GetHeight'):
                self._bmp = wx.BitmapFromImage(img)
            else:
                print("Unsupported image type: %s" % type(img))
                return
            self.SetMinSize((self._bmp.GetWidth(), self._bmp.GetHeight()))
829354
protected void setResponsiveImageSource(HtmlElement<?> mediaElement, JSONArray responsiveImageSources, Media media) {
    mediaElement.setData(PROP_RESPONSIVE_SOURCES, responsiveImageSources.toString());
  }