gd_image.inc.php (jpgraph-4.3.4) | : | gd_image.inc.php (jpgraph-4.3.5) | ||
---|---|---|---|---|
skipping to change at line 128 | skipping to change at line 128 | |||
function CreateRawCanvas($aWidth=0,$aHeight=0) { | function CreateRawCanvas($aWidth=0,$aHeight=0) { | |||
$aWidth *= SUPERSAMPLING_SCALE; | $aWidth *= SUPERSAMPLING_SCALE; | |||
$aHeight *= SUPERSAMPLING_SCALE; | $aHeight *= SUPERSAMPLING_SCALE; | |||
if( $aWidth <= 1 || $aHeight <= 1 ) { | if( $aWidth <= 1 || $aHeight <= 1 ) { | |||
JpGraphError::RaiseL(25082,$aWidth,$aHeight);//("Illegal sizes speci fied for width or height when creating an image, (width=$aWidth, height=$aHeight )"); | JpGraphError::RaiseL(25082,$aWidth,$aHeight);//("Illegal sizes speci fied for width or height when creating an image, (width=$aWidth, height=$aHeight )"); | |||
} | } | |||
$this->img = @imagecreatetruecolor($aWidth, $aHeight); | $this->img = @imagecreatetruecolor($aWidth, $aHeight); | |||
if( $this->img < 1 ) { | if( !$this->img ) { | |||
JpGraphError::RaiseL(25126); | JpGraphError::RaiseL(25126); | |||
//die("Can't create truecolor image. Check that you really have GD2 library installed."); | //die("Can't create truecolor image. Check that you really have GD2 library installed."); | |||
} | } | |||
$this->SetAlphaBlending(); | $this->SetAlphaBlending(); | |||
if( $this->iInterlace ) { | if( $this->iInterlace ) { | |||
imageinterlace($this->img,1); | imageinterlace($this->img,1); | |||
} | } | |||
if( $this->rgb != null ) { | if( $this->rgb != null ) { | |||
$this->rgb->img = $this->img ; | $this->rgb->img = $this->img ; | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |