| packageless

# Class: Image Source Location: /lib/JpGraph/jpgraph.php
### Class Overview
| ### Variables $bottom_margin $colorstack $colorstackidx $current_color $current_color_name $expired $font_family $font_size $font_style $height $img $img_format $lastx $lasty $left_margin $line_style $line_weight $obs_list $plotheight $plotwidth $quality $rgb $right_margin $text_halign $text_valign $top_margin $ttf $use_anti_aliasing $width | ### Methods Image AddObserver AdjBrightContrast AdjRGBBrightContrast AdjRGBSat AdjSat Arc BresenhamCircle CakeSlice Circle CreateImgCanvas DashedLine Destroy Ellipse Fill FilledArc FilledCakeSlice FilledCircle FilledPolygon FilledRectangle GetFontHeight GetFontWidth GetTextHeight GetTextWidth Headers Line LineTo lip NotifyObservers Point Polygon PopColor PushColor Rectangle SetAntiAliasing SetAutoMargin SetColor SetFont SetImgFormat SetLineStyle SetLineWeight SetMargin SetQuality SetStartPoint SetTextAlign SetTransparent ShadowRectangle Stream StrokeBoxedText StrokeText StyleLine StyleLineTo WuLine _AdjBrightContrast _AdjSat
### Child classes: RotImage | ### Inherited Variables | ### Inherited Methods
### Class Details [line 3003] [ Top ] ### Class Variables #### $bottom_margin = 30 [line 3007]
Type: | mixed
[ Top ] #### $colorstack = array() [line 3021]
Type: | mixed
[ Top ] #### $colorstackidx = [line 3021]
Type: | mixed
[ Top ] #### $current_color = [line 3010]
Type: | mixed
[ Top ] #### $current_color_name = [line 3010]
Type: | mixed
[ Top ] #### $expired = false [line 3005]
Type: | mixed
[ Top ] #### $font_family = FF_FONT1 [line 3016]
Type: | mixed
[ Top ] #### $font_size = 12 [line 3016]
Type: | mixed
[ Top ] #### $font_style = FS_NORMAL [line 3016]
Type: | mixed
[ Top ] #### $height = [line 3012]
Type: | mixed
[ Top ] #### $img = [line 3006]
Type: | mixed
[ Top ] #### $img_format = [line 3004]
Type: | mixed
[ Top ] #### $lastx = 0 [line 3011]
Type: | mixed
[ Top ] #### $lasty = 0 [line 3011]
Type: | mixed
[ Top ] #### $left_margin = 30 [line 3007]
Type: | mixed
[ Top ] #### $line_style = 1 [line 3014]
Type: | mixed
[ Top ] #### $line_weight = 1 [line 3013]
Type: | mixed
[ Top ] #### $obs_list = array() [line 3015]
Type: | mixed
[ Top ] #### $plotheight = [line 3008]
Type: | mixed
[ Top ] #### $plotwidth = [line 3008]
Type: | mixed
[ Top ] #### $quality = null [line 3020]
Type: | mixed
[ Top ] #### $rgb = [line 3009]
Type: | mixed
[ Top ] #### $right_margin = 30 [line 3007]
Type: | mixed
[ Top ] #### $text_halign = "left" [line 3017]
Type: | mixed
[ Top ] #### $text_valign = "bottom" [line 3017]
Type: | mixed
[ Top ] #### $top_margin = 20 [line 3007]
Type: | mixed
[ Top ] #### $ttf = null [line 3018]
Type: | mixed
[ Top ] #### $use_anti_aliasing = false [line 3019]
Type: | mixed
[ Top ] #### $width = [line 3012]
Type: | mixed
[ Top ] ### Class Methods ### constructor Image [line 3024]
`Image Image( mixed $aWidth, mixed $aHeight, [mixed $aFormat = DEFAULT_GFORMAT])`
[ Top ] ### method AddObserver [line 3077]
`void AddObserver( mixed $aMethod, mixed &$aObject)`
[ Top ] ### method AdjBrightContrast [line 3389]
`void AdjBrightContrast( mixed $bright, [mixed $contr = 0])`
[ Top ] ### method AdjRGBBrightContrast [line 3458]
`void AdjRGBBrightContrast( mixed $rgb, mixed $bright, mixed $contr)`
[ Top ] ### method AdjRGBSat [line 3421]
`void AdjRGBSat( mixed $rgb, mixed $sat)`
[ Top ] ### method AdjSat [line 3375]
`void AdjSat( mixed $sat)`
[ Top ] ### method Arc [line 3489]
`void Arc( mixed $cx, mixed $cy, mixed $w, mixed $h, mixed $s, mixed $e)`
Overridden in child classes as: RotImage::Arc() [ Top ] ### method BresenhamCircle [line 3606]
`void BresenhamCircle( mixed $xc, mixed $yc, mixed $r)`
[ Top ] ### method CakeSlice [line 3571]
`void CakeSlice( mixed $xc, mixed $yc, mixed $w, mixed $h, mixed $s, mixed $e, [mixed $fillcolor = ""], [mixed $arccolor = ""])`
[ Top ] ### method Circle [line 3630]
`void Circle( mixed $xc, mixed $yc, mixed $r)`
Overridden in child classes as: RotImage::Circle() [ Top ] ### method CreateImgCanvas [line 3043]
`void CreateImgCanvas( [mixed $aWidth = 0], [mixed $aHeight = 0])`
[ Top ] ### method DashedLine [line 3856]
`void DashedLine( mixed $x1, mixed $y1, mixed $x2, mixed $y2, [mixed $dash_length = 1], [mixed $dash_space = 4])`
Overridden in child classes as: RotImage::DashedLine() [ Top ] ### method Destroy [line 3918]
`void Destroy( )`
[ Top ] ### method Ellipse [line 3599]
`void Ellipse( mixed $xc, mixed $yc, mixed $w, mixed $h)`
[ Top ] ### method Fill [line 3852]
`void Fill( mixed $x, mixed $y)`
[ Top ] ### method FilledArc [line 3493]
`void FilledArc( mixed $xc, mixed $yc, mixed $w, mixed $h, mixed $s, mixed $e, [mixed $style = ""])`
Overridden in child classes as: RotImage::FilledArc() [ Top ] ### method FilledCakeSlice [line 3567]
`void FilledCakeSlice( mixed $cx, mixed $cy, mixed $w, mixed $h, mixed $s, mixed $e)`
[ Top ] ### method FilledCircle [line 3640]
`void FilledCircle( mixed $xc, mixed $yc, mixed $r)`
Overridden in child classes as: RotImage::FilledCircle() [ Top ] ### method FilledPolygon [line 3809]
`void FilledPolygon( mixed $pts)`
Overridden in child classes as: RotImage::FilledPolygon() [ Top ] ### method FilledRectangle [line 3817]
`void FilledRectangle( mixed $xl, mixed $yu, mixed $xr, mixed $yl)`
Overridden in child classes as: RotImage::FilledRectangle() [ Top ] ### method GetFontHeight [line 3127]
`void GetFontHeight( [mixed $txt = "XMg"], [mixed $angle = 0])`
[ Top ] ### method GetFontWidth [line 3133]
`void GetFontWidth( [mixed $txt = "O"], [mixed $angle = 0])`
[ Top ] ### method GetTextHeight [line 3105]
`void GetTextHeight( [mixed $txt = ""], [mixed $angle = 0])`
[ Top ] ### method GetTextWidth [line 3138]
`void GetTextWidth( mixed $txt, [mixed $angle = 0])`
[ Top ] ### method Headers [line 3885]
`void Headers( )`
[ Top ] ### method Line [line 3751]
`void Line( mixed $x1, mixed $y1, mixed $x2, mixed $y2)`
Overridden in child classes as: RotImage::Line() [ Top ] ### method LineTo [line 3842]
`void LineTo( mixed $x, mixed $y)`
[ Top ] ### method lip [line 3650]
`void lip( mixed $f, mixed $t, mixed $p)`
[ Top ] ### method NotifyObservers [line 3082]
`void NotifyObservers( )`
[ Top ] ### method Point [line 3848]
`void Point( mixed $x, mixed $y)`
Overridden in child classes as: RotImage::Point() [ Top ] ### method Polygon [line 3800]
`void Polygon( mixed $p)`
Overridden in child classes as: RotImage::Polygon() [ Top ] ### method PopColor [line 3365]
`void PopColor( )`
[ Top ] ### method PushColor [line 3353]
`void PushColor( mixed $color)`
[ Top ] ### method Rectangle [line 3813]
`void Rectangle( mixed $xl, mixed $yu, mixed $xr, mixed $yl)`
Overridden in child classes as: RotImage::Rectangle() [ Top ] ### method SetAntiAliasing [line 3224]
`void SetAntiAliasing( )`
[ Top ] ### method SetAutoMargin [line 3032]
`void SetAutoMargin( )`
[ Top ] ### method SetColor [line 3324]
`void SetColor( mixed $color)`
[ Top ] ### method SetFont [line 3092]
`void SetFont( mixed $family, [mixed $style = FS_NORMAL], [mixed $size = 10])`
[ Top ] ### method SetImgFormat [line 3924]
`void SetImgFormat( mixed $aFormat)`
[ Top ] ### method SetLineStyle [line 3714]
`void SetLineStyle( mixed $s)`
[ Top ] ### method SetLineWeight [line 3480]
`void SetLineWeight( mixed $weight)`
[ Top ] ### method SetMargin [line 3308]
`void SetMargin( mixed $lm, mixed $rm, mixed $tm, mixed $bm)`
Overridden in child classes as: RotImage::SetMargin() [ Top ] ### method SetQuality [line 3896]
`void SetQuality( mixed $q)`
[ Top ] ### method SetStartPoint [line 3484]
`void SetStartPoint( mixed $x, mixed $y)`
[ Top ] ### method SetTextAlign [line 3218]
`void SetTextAlign( mixed $halign, [mixed $valign = "bottom"])`
[ Top ] ### method SetTransparent [line 3320]
`void SetTransparent( mixed $color)`
[ Top ] ### method ShadowRectangle [line 3821]
`void ShadowRectangle( mixed $xl, mixed $yu, mixed $xr, mixed $yl, [mixed $fcolor = false], [mixed $shadow_width = 3], [mixed $shadow_color = array(102,102,102)])`
[ Top ] ### method Stream [line 3901]
`void Stream( [mixed $aFile = ""])`
[ Top ] ### method StrokeBoxedText [line 3162]
`void StrokeBoxedText( mixed $x, mixed $y, mixed $txt, [mixed $dir = 0], [mixed $fcolor = "white"], [mixed $bcolor = "black"], [mixed $shadow = false], [mixed $paragraph_align = "left"])`
[ Top ] ### method StrokeText [line 3228]
`void StrokeText( mixed $x, mixed $y, mixed $txt, [mixed $dir = 0], [mixed $paragraph_align = "left"])`
Overridden in child classes as: RotImage::StrokeText() [ Top ] ### method StyleLine [line 3731]
`void StyleLine( mixed $x1, mixed $y1, mixed $x2, mixed $y2)`
[ Top ] ### method StyleLineTo [line 3836]
`void StyleLineTo( mixed $x, mixed $y)`
[ Top ] ### method WuLine [line 3660]
`void WuLine( mixed $x1, mixed $y1, mixed $x2, mixed $y2)`
[ Top ] ### method _AdjBrightContrast [line 3392]
`void _AdjBrightContrast( mixed $img, mixed $bright, [mixed $contr = 0])`
[ Top ] ### method _AdjSat [line 3377]
`void _AdjSat( mixed $img, mixed $sat)`
[ Top ] Documentation generated on Mon, 29 Dec 2003 21:14:45 +0100 by phpDocumentor 1.2.3