Overview

Packages

  • JAMA
  • None
  • PHP
  • PHPExcel
    • CachedObjectStorage
    • Calculation
    • Cell
    • Chart
      • Renderer
    • Reader
      • Excel2007
      • Excel5
    • RichText
    • Settings
    • Shared
      • Escher
      • OLE
      • Trend
      • ZipArchive
    • Style
    • Worksheet
      • Drawing
    • Writer
      • 2007
      • CSV
      • Excel2007
      • Excel5
      • HTML
      • PDF

Classes

  • PHPExcel_Shared_CodePage
  • PHPExcel_Shared_Date
  • PHPExcel_Shared_Drawing
  • PHPExcel_Shared_Excel5
  • PHPExcel_Shared_File
  • PHPExcel_Shared_Font
  • PHPExcel_Shared_OLERead
  • PHPExcel_Shared_PasswordHasher
  • PHPExcel_Shared_String
  • PHPExcel_Shared_TimeZone
  • PHPExcel_Shared_XMLWriter
  • PHPExcel_Shared_ZipStreamWrapper
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo
  • Download

Class PHPExcel_Shared_Drawing

PHPExcel_Shared_Drawing

Package: PHPExcel\Shared
Category: PHPExcel
Copyright: Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
License: LGPL
Located at controlador/include/phpexcel/PHPExcel/Shared/Drawing.php
Methods summary
public static integer
# pixelsToEMU( integer $pValue = 0 )

Convert pixels to EMU

Convert pixels to EMU

Parameters

$pValue
Value in pixels

Returns

integer
Value in EMU
public static integer
# EMUToPixels( integer $pValue = 0 )

Convert EMU to pixels

Convert EMU to pixels

Parameters

$pValue
Value in EMU

Returns

integer
Value in pixels
public static integer
# pixelsToCellDimension( integer $pValue, PHPExcel_Style_Font $pDefaultFont )

Convert pixels to column width. 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.

Convert pixels to column width. 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.

Parameters

$pValue
Value in pixels
$pDefaultFont
Default font of the workbook

Returns

integer
Value in cell dimension
public static integer
# cellDimensionToPixels( float $pValue, PHPExcel_Style_Font $pDefaultFont )

Convert column width from (intrinsic) Excel units to pixels

Convert column width from (intrinsic) Excel units to pixels

Parameters

$pValue
Value in cell dimension
$pDefaultFont
Default font of the workbook

Returns

integer
Value in pixels
public static integer
# pixelsToPoints( integer $pValue = 0 )

Convert pixels to points

Convert pixels to points

Parameters

$pValue
Value in pixels

Returns

integer
Value in points
public static integer
# pointsToPixels( integer $pValue = 0 )

Convert points to pixels

Convert points to pixels

Parameters

$pValue
Value in points

Returns

integer
Value in pixels
public static integer
# degreesToAngle( integer $pValue = 0 )

Convert degrees to angle

Convert degrees to angle

Parameters

$pValue
Degrees

Returns

integer
Angle
public static integer
# angleToDegrees( integer $pValue = 0 )

Convert angle to degrees

Convert angle to degrees

Parameters

$pValue
Angle

Returns

integer
Degrees
public static resource
# imagecreatefrombmp( string $p_sFile )

Create a new image from file. By alexander at alexauto dot nl

Create a new image from file. By alexander at alexauto dot nl

Parameters

$p_sFile
$filename Path to Windows DIB (BMP) image

Returns

resource

Link

http://www.php.net/manual/en/function.imagecreatefromwbmp.php#86214
Autene API documentation generated by ApiGen