PHP 클래스 PHPRtfLite_Image

저자: Denis Slaveckij ([email protected])
저자: Steffen Zeidler ([email protected])
상속: implements PHPRtfLite_Freeable
파일 보기 프로젝트 열기: phprtflite/phprtflite 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_border PHPRtfLite_Border rtf border
$_height float resize to height
$_imageHeight integer original image height
$_imageRtfType string image rtf type
$_imageWidth float original image width
$_isMissing boolean flag, true if image file is missing
$_parFormat PHPRtfLite_ParFormat par format
$_rtf PHPRtfLite rtf document
$_stream resource stream as php resource
$_width float resize to width

공개 메소드들

메소드 설명
__construct ( PHPRtfLite $rtf, resource $stream, float $width = null, float $height = null ) constructor
__destruct ( ) destructor - closes stream
createFromFile ( PHPRtfLite $rtf, string $file, float $width = null, float $height = null ) : PHPRtfLite_Image creates rtf image from file
createFromString ( PHPRtfLite $rtf, string $string, string $type, float $width = null, float $height = null ) : PHPRtfLite_Image creates rtf image from string
free ( )
getBorder ( ) : PHPRtfLite_Border gets border
getHeight ( ) : float gets image height
getParFormat ( ) : PHPRtfLite_ParFormat gets paragraph format for image
getWidth ( ) : float gets image width
isMissing ( )
render ( ) renders rtf image for rtf document
setBorder ( PHPRtfLite_Border $border ) sets border
setHeight ( float $height ) sets image height
setIsMissing ( )
setParFormat ( PHPRtfLite_ParFormat $parFormat ) sets paragraph format for image
setWidth ( float $width ) sets image width

보호된 메소드들

메소드 설명
getImageTypeAsRtf ( ) : string gets image rtf type
setImageHeight ( float $height ) sets image original height
setImageWidth ( float $width ) sets image original width
writeIntoRtfStream ( integer $startFrom ) writes image into rtf stream

비공개 메소드들

메소드 설명
create ( PHPRtfLite $rtf, resource $stream, string $type, float $width, float $height ) : PHPRtfLite_Image_Wmf | PHPRtfLite_Image_Gd | PHPRtfLite_Image factory method creates rtf image from stream
createMissingImage ( PHPRtfLite $rtf, float $width, float $height ) : PHPRtfLite_Image_Gd creates a missing image instance
getImageRtfHeight ( ) : integer gets rtf image height
getImageRtfWidth ( ) : integer gets rtf image width
getMissingImage ( ) adds rtf image code to show that the file is missing

메소드 상세

__construct() 공개 메소드

constructor
public __construct ( PHPRtfLite $rtf, resource $stream, float $width = null, float $height = null )
$rtf PHPRtfLite
$stream resource
$width float optional
$height float optional

__destruct() 공개 메소드

destructor - closes stream
public __destruct ( )

createFromFile() 공개 정적인 메소드

creates rtf image from file
public static createFromFile ( PHPRtfLite $rtf, string $file, float $width = null, float $height = null ) : PHPRtfLite_Image
$rtf PHPRtfLite
$file string
$width float optional
$height float optional
리턴 PHPRtfLite_Image

createFromString() 공개 정적인 메소드

creates rtf image from string
public static createFromString ( PHPRtfLite $rtf, string $string, string $type, float $width = null, float $height = null ) : PHPRtfLite_Image
$rtf PHPRtfLite
$string string
$type string (represented by class constants)
$width float optional
$height float optional
리턴 PHPRtfLite_Image

free() 공개 메소드

public free ( )

getBorder() 공개 메소드

gets border
public getBorder ( ) : PHPRtfLite_Border
리턴 PHPRtfLite_Border

getHeight() 공개 메소드

gets image height
public getHeight ( ) : float
리턴 float

getImageTypeAsRtf() 보호된 메소드

gets image rtf type
protected getImageTypeAsRtf ( ) : string
리턴 string

getParFormat() 공개 메소드

gets paragraph format for image
public getParFormat ( ) : PHPRtfLite_ParFormat
리턴 PHPRtfLite_ParFormat

getWidth() 공개 메소드

gets image width
public getWidth ( ) : float
리턴 float

isMissing() 공개 메소드

public isMissing ( )

render() 공개 메소드

renders rtf image for rtf document
public render ( )

setBorder() 공개 메소드

sets border
public setBorder ( PHPRtfLite_Border $border )
$border PHPRtfLite_Border

setHeight() 공개 메소드

sets image height
public setHeight ( float $height )
$height float if not defined image is displayed by it's width.

setImageHeight() 보호된 메소드

sets image original height
protected setImageHeight ( float $height )
$height float

setImageWidth() 보호된 메소드

sets image original width
protected setImageWidth ( float $width )
$width float

setIsMissing() 공개 메소드

public setIsMissing ( )

setParFormat() 공개 메소드

sets paragraph format for image
public setParFormat ( PHPRtfLite_ParFormat $parFormat )
$parFormat PHPRtfLite_ParFormat

setWidth() 공개 메소드

sets image width
public setWidth ( float $width )
$width float if not defined image is displayed by it's height.

writeIntoRtfStream() 보호된 메소드

writes image into rtf stream
protected writeIntoRtfStream ( integer $startFrom )
$startFrom integer

프로퍼티 상세

$_border 보호되어 있는 프로퍼티

rtf border
protected PHPRtfLite_Border $_border
리턴 PHPRtfLite_Border

$_height 보호되어 있는 프로퍼티

resize to height
protected float $_height
리턴 float

$_imageHeight 보호되어 있는 프로퍼티

original image height
protected int $_imageHeight
리턴 integer

$_imageRtfType 보호되어 있는 프로퍼티

image rtf type
protected string $_imageRtfType
리턴 string

$_imageWidth 보호되어 있는 프로퍼티

original image width
protected float $_imageWidth
리턴 float

$_isMissing 보호되어 있는 프로퍼티

flag, true if image file is missing
protected bool $_isMissing
리턴 boolean

$_parFormat 보호되어 있는 프로퍼티

par format
protected PHPRtfLite_ParFormat $_parFormat
리턴 PHPRtfLite_ParFormat

$_rtf 보호되어 있는 프로퍼티

rtf document
protected PHPRtfLite $_rtf
리턴 PHPRtfLite

$_stream 보호되어 있는 프로퍼티

stream as php resource
protected resource $_stream
리턴 resource

$_width 보호되어 있는 프로퍼티

resize to width
protected float $_width
리턴 float