You are here

public static function FileCommited::isPixelTransparent in N1ED - Visual editor as CKEditor plugin with Bootstrap support 8.2

Is pixel transparent.

1 call to FileCommited::isPixelTransparent()
FileCommited::isTransparent in src/Flmngr/FileUploaderServer/lib/file/FileCommited.php
Is file transoarent.

File

src/Flmngr/FileUploaderServer/lib/file/FileCommited.php, line 409

Class

FileCommited
Commited file (data structure about the file of finished upload transaction). Has method for resizing images (applying sizes when finishing transaction).

Namespace

Drupal\n1ed\Flmngr\FileUploaderServer\lib\file

Code

public static function isPixelTransparent($image, $x, $y) {
  $rgba = imagecolorat($image, $x, $y);
  $alpha = ($rgba & 0x7f000000) >> 24;
  return $alpha > 0;
}