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

Class: PHPExcel_Shared_Drawing

Source Location: /PHPExcel/Shared/Drawing.php

Class Overview


PHPExcel_Shared_Drawing


Author(s):

Copyright:

  • Copyright (c) 2006 - 2009 PHPExcel (http://www.codeplex.com/PHPExcel)

Methods



Class Details

[line 36]
PHPExcel_Shared_Drawing

PHPExcel_Shared_Drawing




Tags:

copyright:  Copyright (c) 2006 - 2009 PHPExcel (http://www.codeplex.com/PHPExcel)


[ Top ]


Class Methods


static method angleToDegrees [line 130]

static int angleToDegrees( [int $pValue = 0])

Convert angle to degrees

Convert angle to degrees




Tags:

return:  Degrees
access:  public


Parameters:

int   $pValue   Angle

[ Top ]

static method cellDimensionToPixels [line 82]

static int cellDimensionToPixels( [int $pValue = 0], [int $pFontSize = 11])

Convert cell width to pixels

Convert cell width to pixels




Tags:

return:  Value in pixels
access:  public


Parameters:

int   $pValue   Value in cell dimension
int   $pFontSize   Default font size of workbook

[ Top ]

static method degreesToAngle [line 120]

static int degreesToAngle( [int $pValue = 0])

Convert degrees to angle

Convert degrees to angle




Tags:

return:  Angle
access:  public


Parameters:

int   $pValue   Degrees

[ Top ]

static method EMUToPixels [line 54]

static int EMUToPixels( [int $pValue = 0])

Convert EMU to pixels

Convert EMU to pixels




Tags:

return:  Value in pixels
access:  public


Parameters:

int   $pValue   Value in EMU

[ Top ]

static method pixelsToCellDimension [line 71]

static int pixelsToCellDimension( [int $pValue = 0], [int $pFontSize = 11])

Convert pixels to cell dimension.

Convert pixels to cell dimension. Exact algorithm not known. By inspection of a real Excel file using Calibri 11, one finds 1000px ~ 142.85546875 This gives a conversion factor of 7. Also, we assume that pixels and font size are proportional.




Tags:

return:  Value in cell dimension
access:  public


Parameters:

int   $pValue   Value in pixels
int   $pFontSize   Default font size of workbook

[ Top ]

static method pixelsToEMU [line 44]

static int pixelsToEMU( [int $pValue = 0])

Convert pixels to EMU

Convert pixels to EMU




Tags:

return:  Value in EMU
access:  public


Parameters:

int   $pValue   Value in pixels

[ Top ]

static method pixelsToPoints [line 96]

static int pixelsToPoints( [int $pValue = 0])

Convert pixels to points

Convert pixels to points




Tags:

return:  Value in points
access:  public


Parameters:

int   $pValue   Value in pixels

[ Top ]

static method pointsToPixels [line 106]

static int pointsToPixels( [int $pValue = 0])

Convert points to pixels

Convert points to pixels




Tags:

return:  Value in pixels
access:  public


Parameters:

int   $pValue   Value in points

[ Top ]


Documentation generated on Mon, 10 Aug 2009 08:03:19 +0200 by phpDocumentor 1.4.1