ImageBlob
in package
Table of Contents
Properties
- $bitpix : Bitpix
- $dataBits : int
- $height : int
- $isColor : bool
- $naxis3 : int|null
- $width : int
- $blob : string
- $header : FitsHeader
Methods
- __construct() : mixed
- dataBytes() : Generator
- pixels() : Generator
- Returns a generator that yields image data pixel by pixel
- pixelsMono() : Generator
- toGdImage() : GdImage
- Convert to GD image
- toSVG() : string
- Convert to SVG for display
- createGdImage() : GdImage|false
- gdPixel() : bool
Properties
$bitpix read-only
public
Bitpix
$bitpix
$dataBits read-only
public
int
$dataBits
$height read-only
public
int
$height
$isColor read-only
public
bool
$isColor
$naxis3 read-only
public
int|null
$naxis3
$width read-only
public
int
$width
$blob
private
string
$blob
$header
private
FitsHeader
$header
Methods
__construct()
public
__construct(FitsHeader $header, string $blob) : mixed
Parameters
- $header : FitsHeader
- $blob : string
Tags
dataBytes()
public
dataBytes() : Generator
Return values
Generatorpixels()
Returns a generator that yields image data pixel by pixel
public
pixels([Channel|null $ch = null ]) : Generator
Parameters
- $ch : Channel|null = null
Tags
Return values
GeneratorpixelsMono()
public
pixelsMono() : Generator
Tags
Return values
GeneratortoGdImage()
Convert to GD image
public
toGdImage() : GdImage
Tags
Return values
GdImagetoSVG()
Convert to SVG for display
public
toSVG() : string
Tags
Return values
stringcreateGdImage()
private
createGdImage() : GdImage|false
Return values
GdImage|falsegdPixel()
private
gdPixel(GdImage $gdImg, int $x, int $y, array<string|int, int> $rgb) : bool
Parameters
- $gdImg : GdImage
- $x : int
- $y : int
- $rgb : array<string|int, int>