Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
zendframework1
library
Zend
Pdf
Color
GrayScale.php
Go to the documentation of this file.
1
<?php
24
#require_once 'Zend/Pdf/Element/Numeric.php';
25
26
28
#require_once 'Zend/Pdf/Color.php';
29
38
class
Zend_Pdf_Color_GrayScale
extends
Zend_Pdf_Color
39
{
46
private
$_grayLevel;
47
53
public
function
__construct
($grayLevel)
54
{
55
if
($grayLevel < 0) { $grayLevel = 0; }
56
if
($grayLevel > 1) { $grayLevel = 1; }
57
58
$this->_grayLevel =
new
Zend_Pdf_Element_Numeric
($grayLevel);
59
}
60
69
public
function
instructions
($stroking)
70
{
71
return
$this->_grayLevel->toString() . ($stroking?
" G\n"
:
" g\n"
);
72
}
73
79
public
function
getComponents
()
80
{
81
return
array($this->_grayLevel->value);
82
}
83
}
84
Zend_Pdf_Color_GrayScale
Definition:
GrayScale.php:38
Zend_Pdf_Color_GrayScale\getComponents
getComponents()
Definition:
GrayScale.php:79
Zend_Pdf_Color_GrayScale\__construct
__construct($grayLevel)
Definition:
GrayScale.php:53
Zend_Pdf_Element_Numeric
Definition:
Numeric.php:35
Zend_Pdf_Color
Definition:
Color.php:34
Zend_Pdf_Color_GrayScale\instructions
instructions($stroking)
Definition:
GrayScale.php:69