Set the icon associated to a given scatter serie
@param int $ID
@param mixed $Picture
549359
public function setScatterSeriePicture($ID, $Picture = null)
    {
        if (isset($this->Data["ScatterSeries"][$ID])) {
            $this->Data["ScatterSeries"][$ID]["Picture"] = $Picture;
        }
    }
756419
function loadByID(id) {
    var iconConfig = config[id];
    return loadByURL(iconConfig.url).then(function(icon) {
      return new Icon(icon, iconConfig);
    });
  }
408078
public function apply(Picture $picture)
    {
        // GD VERSION IS BETTER AND IS PREFERRED
        if($picture->isGd() || $picture->gdAvailable())
        {
            $resource = $picture->getResource($picture::WORKER_GD);

            imagefilter($resource, IMG_FILTER_CONTRAST, $this->contrast * -1);

            $picture->setResource($resource);
        }
        else
        {
            $resource = $picture->getResource($picture::WORKER_IMAGICK);

            $resource->sigmoidalContrastImage(FALSE, $this->contrast / 4, 0);
        }
    }
950518
public void setImage(Resource resource)
    {
        ImageIcon image = null;
        if (resource != null && resource.exists())
        {
            try
            {
                image = new ImageIcon(resource.getURL());
            }
            catch (IOException e)
            {
                logger.warn("Error reading resource: " + resource);
                throw new RuntimeException("Error reading resource " + resource, e);
            }
        }
        setImage(image);
    }
1260448
public function handlePreviousImage(int $id): void
	{
		if ($this->request->isAjax()) {
			$row = $this->getStorage()->getPrevious($id);
			if ($row) {
				$this->template->viewImage = $row;
				$this->redrawControl('image');
			} else {
				throw new AbortException;
			}
		} else {
			throw new AbortException;
		}
	}
359306
public void addIcon(Object icon, int iIndex)
    {
        if (m_rgIcons == null)
        {
            m_rgIcons = new ImageIcon[MAX_ICONS];
            m_timer = new javax.swing.Timer(500, this);         // Remind me to change graphics every 1/2 second
            m_timer.start();
        }
        if (iIndex < MAX_ICONS)
        	if (icon instanceof ImageIcon)		// Always
        		m_rgIcons[iIndex] = (ImageIcon)icon;
    }
1311835
public void setIcon(@DrawableRes int resId){
        mIcon.setImageResource(resId);
        mIcon.setVisibility(View.VISIBLE);
    }
75798
public function apply(Picture $picture)
    {
        // CALCULATE COLORIZE COLOR
        if(strpos($this->color, '#') !== FALSE)
        {
            $color = $this->hex2rgb($this->color);
        }
        else
        {
            $color = explode(',', $this->color);
        }

        // GD VERSION IS BETTER AND IS PREFERRED
        if($picture->isImagick() && !$picture->gdAvailable())
        {
            $resource = $picture->getResource($picture::WORKER_IMAGICK);

            $quantumRange = $resource->getQuantumRange();

            $r = $this->normalizeChannel($color[0]);
            $g = $this->normalizeChannel($color[1]);
            $b = $this->normalizeChannel($color[2]);

            $resource->levelImage(0, $r, $quantumRange['quantumRangeLong'], Imagick::CHANNEL_RED);
            $resource->levelImage(0, $g, $quantumRange['quantumRangeLong'], Imagick::CHANNEL_GREEN);
            $resource->levelImage(0, $b, $quantumRange['quantumRangeLong'], Imagick::CHANNEL_BLUE);
        }
        else
        {
            $resource = $picture->getResource($picture::WORKER_GD);

            $r = ceil($color[0]);
            $g = ceil($color[1]);
            $b = ceil($color[2]);

            imagefilter($resource, IMG_FILTER_COLORIZE, $r, $g, $b);

            $picture->setResource($resource);
        }
    }
831971
public function deletePictures($ids)
    {
        $pictures = $this->pictures()->whereIn('id', $ids)->get();

        $pictures->each(function ($item) {
            $item->delete();
        });
    }
402705
public function apply(Picture $picture)
    {
        $resource = $picture->getResource();

        if($picture->isGd())
        {
            $resource = $this->applyWatermarkGD($resource, $picture);

            $picture->setResource($resource);
        }
        else
        {
            $this->applyWatermarkImagick($resource);
        }
    }
338489
public void addImage(int id, Media media)
    {
        final Integer key = Integer.valueOf(id);
        surfaces.put(key, Drawable.loadImage(media));
        if (surfaceId == null)
        {
            surfaceId = key;
        }
    }
1172530
public void setIcon(final Image IMAGE) {
        if (null == icon) {
            _icon = IMAGE;
        } else {
            icon.set(IMAGE);
        }
    }
858023
public function setScatterSerieDrawable($ID, $Drawable = true)
    {
        if (isset($this->Data["ScatterSeries"][$ID])) {
            $this->Data["ScatterSeries"][$ID]["isDrawable"] = $Drawable;
        }
    }
739867
public function apply(Picture $picture)
    {
        $resource = $picture->getResource();

        if($picture->isGd())
        {
            imagefilter($resource, IMG_FILTER_CONTRAST, -15);
            imagefilter($resource, IMG_FILTER_BRIGHTNESS, 8);

            $picture->setResource($resource);
        }
        else
        {
            $resource->modulateImage(108, 170, 100);
        }
    }
648820
private function adminImageToggle($id)
    {
        $table = ORM::getTable($this, 'Image');
        /* @var Gallery_Entity_Image $image */
        $image = $table->find($id);
        $image->active = ! $image->active;
        $table->update($image);

        HTTP::goback();
    }
278056
public function apply(Picture $picture)
    {
        $resource = $picture->getResource();

        if($picture->isGd())
        {
            // GIF IMAGES HAS PROBLEM WITH THIS FILTER
            if(strtolower(pathinfo($picture->getImage(), PATHINFO_EXTENSION)) === 'gif')
            {
                return;
            }

            for($i = 0; $i < $this->strength; $i++)
            {
                imagefilter($resource, IMG_FILTER_GAUSSIAN_BLUR);
            }

            $picture->setResource($resource);
        }
        else
        {
            $resource->blurImage(1 * $this->strength, 0.45 * $this->strength);
        }
    }
602303
public function setIcon($icon)
    {
        if (in_array(
            $icon,
            $this->validIcons
        )) {
            $this->icon = $icon;
        }

        return $this;
    }