You are here

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

1 call to FileCommited::isPixelTransparent()
FileCommited::isTransparent in vendor/edsdk/file-uploader-server-php/src/lib/file/FileCommited.php

File

vendor/edsdk/file-uploader-server-php/src/lib/file/FileCommited.php, line 290

Class

FileCommited

Namespace

EdSDK\FileUploaderServer\lib\file

Code

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