apidoc
[ class tree: apidoc ] [ index: apidoc ] [ all elements ]

Class: XML_image2svg

Source Location: /XML_image2svg-0.1.1/XML/image2svg.php

Class Overview

PEAR
   |
   --XML_image2svg



Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 60]


[ Top ]


Class Variables

$buffer =  ""

[line 80]

Storage representation of the image string

Type:   string


[ Top ]

$fp =  null

[line 73]

Image file pointer.

Type:   mixed


[ Top ]

$imageQuality =  0.8

[line 67]

TODO: Modify the quality of the output image. Needs GD support.

Type:   imageQuality


[ Top ]

$par = array(0, 0, 0, "")

[line 87]

Image information

Type:   array


[ Top ]



Method Detail

XML_image2svg (Constructor)   [line 96]

XML_image2svg XML_image2svg( [string $fileName = ""])

Constructs a new XML_image2svg object.

Parameters:

string   $fileName   —  image filename

[ Top ]

encodeImage   [line 216]

string encodeImage( )

Encode image by base 64
  • Return: Returns encoded image as string
  • Author: Urs Gehrig <urs@circle.ch>
  • Access: public

[ Top ]

errorHandler   [line 263]

object PEAR_Error errorHandler( [string $err = "UNKNOWN"], [string $file = __FILE__], [string $line = __LINE__])

Handling the error messages
  • Return: object
  • Author: Urs Gehrig <urs@circle.ch>
  • Access: public

Parameters:

string   $err   —  error message
string   $file   —  file where the error occured
string   $line   —  linenumber where the error occured

[ Top ]

get   [line 228]

mixed get( )

Return the SVG output
  • Return: PEAR_Error object or string
  • Author: Urs Gehrig <urs@circle.ch>
  • Access: public

[ Top ]

show   [line 243]

mixed show( )

Display the SVG output
  • Return: PEAR_Error object or bool on success
  • Author: Urs Gehrig <urs@circle.ch>
  • Access: public

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:38:20 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.