• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/engine/response/resizedimage.php
  • Класс: BitrixMainEngineResponseResizedImage
  • Вызов: ResizedImage::createByImageId
static function createByImageId($imageId, $width, $height, $name = null)
{
	$imageData = CFile::getFileArray($imageId);
	if (!$imageData)
	{
		throw new MainObjectNotFoundException("Could not find file");
	}

	return new self($imageData, $width, $height, $name);
}