\hypertarget{classMike42_1_1Escpos_1_1EscposImage}{}\section{Mike42\textbackslash{}Escpos\textbackslash{}Escpos\+Image Class Reference}
\label{classMike42_1_1Escpos_1_1EscposImage}\index{Mike42\textbackslash{}\+Escpos\textbackslash{}\+Escpos\+Image@{Mike42\textbackslash{}\+Escpos\textbackslash{}\+Escpos\+Image}}


Inheritance diagram for Mike42\textbackslash{}Escpos\textbackslash{}Escpos\+Image\+:
% FIG 0
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classMike42_1_1Escpos_1_1EscposImage_a57c9f74faf45f6e77dd07513d3d13b37}{\+\_\+\+\_\+construct} (\$filename=null, \$allow\+Optimisations=true)
\item 
\hyperlink{classMike42_1_1Escpos_1_1EscposImage_a5fc90aeb54972ac8c9063bfb9fb4b663}{get\+Height} ()
\item 
\hyperlink{classMike42_1_1Escpos_1_1EscposImage_a80376b58e2ae2bfafe1c340a677c8793}{get\+Height\+Bytes} ()
\item 
\hyperlink{classMike42_1_1Escpos_1_1EscposImage_aefa8b61d9fcc31a0ddf045b5d98efe14}{get\+Width} ()
\item 
\hyperlink{classMike42_1_1Escpos_1_1EscposImage_a45f2a33ead91a554c306eaad6444eeb8}{get\+Width\+Bytes} ()
\item 
\hyperlink{classMike42_1_1Escpos_1_1EscposImage_abd6a1f6b9d55409246d874461e730df0}{to\+Raster\+Format} ()
\item 
\hyperlink{classMike42_1_1Escpos_1_1EscposImage_afc16075746bef4c0ff311e85660af7a9}{to\+Column\+Format} (\$double\+Density=false)
\end{DoxyCompactItemize}
\subsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
static \hyperlink{classMike42_1_1Escpos_1_1EscposImage_a276149e93b80d9c8ca60cca73402c68b}{is\+Gd\+Loaded} ()
\item 
static \hyperlink{classMike42_1_1Escpos_1_1EscposImage_a57ec8e7158c5c5fb2930c1f185a4b2d7}{is\+Imagick\+Loaded} ()
\item 
static \hyperlink{classMike42_1_1Escpos_1_1EscposImage_ac0c246b80a6934a3840968b19517f48c}{load} (\$filename, \$allow\+Optimisations=true, array \$preferred=\mbox{[}'imagick', 'gd', 'native'\mbox{]})
\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classMike42_1_1Escpos_1_1EscposImage_a5b09aa9a7561759dba76282e5b0647cb}{load\+Image\+Data} (\$filename=null)
\item 
\hyperlink{classMike42_1_1Escpos_1_1EscposImage_a085b7aab6c7269700d80c8e163aaf365}{set\+Img\+Data} (\$data)
\item 
\hyperlink{classMike42_1_1Escpos_1_1EscposImage_a27ea4fc9d668db992c8222400f566307}{set\+Img\+Width} (\$width)
\item 
\hyperlink{classMike42_1_1Escpos_1_1EscposImage_a3ff7e9483ccc19429dfbd214cdde520b}{set\+Img\+Height} (\$height)
\item 
\hyperlink{classMike42_1_1Escpos_1_1EscposImage_ae47963982d5922e838356b7e449c2f1a}{get\+Raster\+Format\+From\+File} (\$filename=null)
\item 
\hyperlink{classMike42_1_1Escpos_1_1EscposImage_a51378888dd516e1dd0fd1295b41441d0}{get\+Column\+Format\+From\+File} (\$filename=null, \$high\+Density\+Vertical=true)
\end{DoxyCompactItemize}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classMike42_1_1Escpos_1_1EscposImage_abbd7d7d81db631a2a555be2906856489}{\$img\+Height} = 0
\item 
\hyperlink{classMike42_1_1Escpos_1_1EscposImage_a16c9f28626c3fe81aec151042a9e5e58}{\$img\+Width} = 0
\end{DoxyCompactItemize}


\subsection{Detailed Description}
This class deals with images in raster formats, and converts them into formats which are suitable for use on thermal receipt printers. Currently, only P\+N\+G images (in) and E\+S\+C/\+P\+O\+S raster format (out) are implemeted.

Input formats\+:
\begin{DoxyItemize}
\item Currently, only P\+N\+G is supported.
\item Other easily read raster formats (jpg, gif) will be added at a later date, as this is not complex.
\item The B\+M\+P format can be directly read by some commands, but this has not yet been implemented.
\end{DoxyItemize}

Output formats\+:
\begin{DoxyItemize}
\item Currently, only E\+S\+C/\+P\+O\+S raster format is supported
\item E\+S\+C/\+P\+O\+S 'column format' support is partially implemented, but is not yet used by Escpos.\+php library.
\item Output as multiple rows of column format image is not yet in the works.
\end{DoxyItemize}

Libraries\+:
\begin{DoxyItemize}
\item Currently, php-\/gd is used to read the input. Support for imagemagick where gd is not installed is also not complex to add, and is a likely future feature.
\item Support for native use of the B\+M\+P format is a goal, for maximum compatibility with target environments. 
\end{DoxyItemize}

\subsection{Constructor \& Destructor Documentation}
\hypertarget{classMike42_1_1Escpos_1_1EscposImage_a57c9f74faf45f6e77dd07513d3d13b37}{}\index{Mike42\+::\+Escpos\+::\+Escpos\+Image@{Mike42\+::\+Escpos\+::\+Escpos\+Image}!\+\_\+\+\_\+construct@{\+\_\+\+\_\+construct}}
\index{\+\_\+\+\_\+construct@{\+\_\+\+\_\+construct}!Mike42\+::\+Escpos\+::\+Escpos\+Image@{Mike42\+::\+Escpos\+::\+Escpos\+Image}}
\subsubsection[{\+\_\+\+\_\+construct}]{\setlength{\rightskip}{0pt plus 5cm}Mike42\textbackslash{}\+Escpos\textbackslash{}\+Escpos\+Image\+::\+\_\+\+\_\+construct (
\begin{DoxyParamCaption}
\item[{}]{\$filename = {\ttfamily null}, }
\item[{}]{\$allow\+Optimisations = {\ttfamily true}}
\end{DoxyParamCaption}
)}\label{classMike42_1_1Escpos_1_1EscposImage_a57c9f74faf45f6e77dd07513d3d13b37}
Construct a new \hyperlink{classMike42_1_1Escpos_1_1EscposImage}{Escpos\+Image}.


\begin{DoxyParams}[1]{Parameters}
string & {\em \$filename} & Path to image filename, or null to create an empty image. \\
\hline
boolean & {\em \$allow\+Optimisations} & True (default) to use any library-\/specific tricks to speed up rendering, false to force the image to be read in pixel-\/by-\/pixel, which is easier to unit test and more reproducible between systems, but slower. \\
\hline
\end{DoxyParams}


\subsection{Member Function Documentation}
\hypertarget{classMike42_1_1Escpos_1_1EscposImage_a51378888dd516e1dd0fd1295b41441d0}{}\index{Mike42\+::\+Escpos\+::\+Escpos\+Image@{Mike42\+::\+Escpos\+::\+Escpos\+Image}!get\+Column\+Format\+From\+File@{get\+Column\+Format\+From\+File}}
\index{get\+Column\+Format\+From\+File@{get\+Column\+Format\+From\+File}!Mike42\+::\+Escpos\+::\+Escpos\+Image@{Mike42\+::\+Escpos\+::\+Escpos\+Image}}
\subsubsection[{get\+Column\+Format\+From\+File}]{\setlength{\rightskip}{0pt plus 5cm}Mike42\textbackslash{}\+Escpos\textbackslash{}\+Escpos\+Image\+::get\+Column\+Format\+From\+File (
\begin{DoxyParamCaption}
\item[{}]{\$filename = {\ttfamily null}, }
\item[{}]{\$high\+Density\+Vertical = {\ttfamily true}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [protected]}}\label{classMike42_1_1Escpos_1_1EscposImage_a51378888dd516e1dd0fd1295b41441d0}

\begin{DoxyParams}[1]{Parameters}
string & {\em \$filename} & Filename to load from \\
\hline
boolean & {\em \$high\+Density\+Vertical} & True for high density output (24px lines), false for regular density (8px) \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
string\mbox{[}\mbox{]}$\vert$\+N\+U\+L\+L Column format data as array, or N\+U\+L\+L if optimised renderer isn't available in this implementation. 
\end{DoxyReturn}
\hypertarget{classMike42_1_1Escpos_1_1EscposImage_a5fc90aeb54972ac8c9063bfb9fb4b663}{}\index{Mike42\+::\+Escpos\+::\+Escpos\+Image@{Mike42\+::\+Escpos\+::\+Escpos\+Image}!get\+Height@{get\+Height}}
\index{get\+Height@{get\+Height}!Mike42\+::\+Escpos\+::\+Escpos\+Image@{Mike42\+::\+Escpos\+::\+Escpos\+Image}}
\subsubsection[{get\+Height}]{\setlength{\rightskip}{0pt plus 5cm}Mike42\textbackslash{}\+Escpos\textbackslash{}\+Escpos\+Image\+::get\+Height (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{classMike42_1_1Escpos_1_1EscposImage_a5fc90aeb54972ac8c9063bfb9fb4b663}
\begin{DoxyReturn}{Returns}
int height of the image in pixels 
\end{DoxyReturn}
\hypertarget{classMike42_1_1Escpos_1_1EscposImage_a80376b58e2ae2bfafe1c340a677c8793}{}\index{Mike42\+::\+Escpos\+::\+Escpos\+Image@{Mike42\+::\+Escpos\+::\+Escpos\+Image}!get\+Height\+Bytes@{get\+Height\+Bytes}}
\index{get\+Height\+Bytes@{get\+Height\+Bytes}!Mike42\+::\+Escpos\+::\+Escpos\+Image@{Mike42\+::\+Escpos\+::\+Escpos\+Image}}
\subsubsection[{get\+Height\+Bytes}]{\setlength{\rightskip}{0pt plus 5cm}Mike42\textbackslash{}\+Escpos\textbackslash{}\+Escpos\+Image\+::get\+Height\+Bytes (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{classMike42_1_1Escpos_1_1EscposImage_a80376b58e2ae2bfafe1c340a677c8793}
\begin{DoxyReturn}{Returns}
int Number of bytes to represent a row of this image 
\end{DoxyReturn}
\hypertarget{classMike42_1_1Escpos_1_1EscposImage_ae47963982d5922e838356b7e449c2f1a}{}\index{Mike42\+::\+Escpos\+::\+Escpos\+Image@{Mike42\+::\+Escpos\+::\+Escpos\+Image}!get\+Raster\+Format\+From\+File@{get\+Raster\+Format\+From\+File}}
\index{get\+Raster\+Format\+From\+File@{get\+Raster\+Format\+From\+File}!Mike42\+::\+Escpos\+::\+Escpos\+Image@{Mike42\+::\+Escpos\+::\+Escpos\+Image}}
\subsubsection[{get\+Raster\+Format\+From\+File}]{\setlength{\rightskip}{0pt plus 5cm}Mike42\textbackslash{}\+Escpos\textbackslash{}\+Escpos\+Image\+::get\+Raster\+Format\+From\+File (
\begin{DoxyParamCaption}
\item[{}]{\$filename = {\ttfamily null}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [protected]}}\label{classMike42_1_1Escpos_1_1EscposImage_ae47963982d5922e838356b7e449c2f1a}

\begin{DoxyParams}[1]{Parameters}
string & {\em \$filename} & Filename to load from \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
string$\vert$\+N\+U\+L\+L Raster format data, or N\+U\+L\+L if no optimised renderer is available in this implementation. 
\end{DoxyReturn}
\hypertarget{classMike42_1_1Escpos_1_1EscposImage_aefa8b61d9fcc31a0ddf045b5d98efe14}{}\index{Mike42\+::\+Escpos\+::\+Escpos\+Image@{Mike42\+::\+Escpos\+::\+Escpos\+Image}!get\+Width@{get\+Width}}
\index{get\+Width@{get\+Width}!Mike42\+::\+Escpos\+::\+Escpos\+Image@{Mike42\+::\+Escpos\+::\+Escpos\+Image}}
\subsubsection[{get\+Width}]{\setlength{\rightskip}{0pt plus 5cm}Mike42\textbackslash{}\+Escpos\textbackslash{}\+Escpos\+Image\+::get\+Width (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{classMike42_1_1Escpos_1_1EscposImage_aefa8b61d9fcc31a0ddf045b5d98efe14}
\begin{DoxyReturn}{Returns}
int Width of the image 
\end{DoxyReturn}
\hypertarget{classMike42_1_1Escpos_1_1EscposImage_a45f2a33ead91a554c306eaad6444eeb8}{}\index{Mike42\+::\+Escpos\+::\+Escpos\+Image@{Mike42\+::\+Escpos\+::\+Escpos\+Image}!get\+Width\+Bytes@{get\+Width\+Bytes}}
\index{get\+Width\+Bytes@{get\+Width\+Bytes}!Mike42\+::\+Escpos\+::\+Escpos\+Image@{Mike42\+::\+Escpos\+::\+Escpos\+Image}}
\subsubsection[{get\+Width\+Bytes}]{\setlength{\rightskip}{0pt plus 5cm}Mike42\textbackslash{}\+Escpos\textbackslash{}\+Escpos\+Image\+::get\+Width\+Bytes (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{classMike42_1_1Escpos_1_1EscposImage_a45f2a33ead91a554c306eaad6444eeb8}
\begin{DoxyReturn}{Returns}
int Number of bytes to represent a row of this image 
\end{DoxyReturn}
\hypertarget{classMike42_1_1Escpos_1_1EscposImage_a276149e93b80d9c8ca60cca73402c68b}{}\index{Mike42\+::\+Escpos\+::\+Escpos\+Image@{Mike42\+::\+Escpos\+::\+Escpos\+Image}!is\+Gd\+Loaded@{is\+Gd\+Loaded}}
\index{is\+Gd\+Loaded@{is\+Gd\+Loaded}!Mike42\+::\+Escpos\+::\+Escpos\+Image@{Mike42\+::\+Escpos\+::\+Escpos\+Image}}
\subsubsection[{is\+Gd\+Loaded}]{\setlength{\rightskip}{0pt plus 5cm}static Mike42\textbackslash{}\+Escpos\textbackslash{}\+Escpos\+Image\+::is\+Gd\+Loaded (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}\label{classMike42_1_1Escpos_1_1EscposImage_a276149e93b80d9c8ca60cca73402c68b}
\begin{DoxyReturn}{Returns}
boolean True if G\+D is loaded, false otherwise 
\end{DoxyReturn}
\hypertarget{classMike42_1_1Escpos_1_1EscposImage_a57ec8e7158c5c5fb2930c1f185a4b2d7}{}\index{Mike42\+::\+Escpos\+::\+Escpos\+Image@{Mike42\+::\+Escpos\+::\+Escpos\+Image}!is\+Imagick\+Loaded@{is\+Imagick\+Loaded}}
\index{is\+Imagick\+Loaded@{is\+Imagick\+Loaded}!Mike42\+::\+Escpos\+::\+Escpos\+Image@{Mike42\+::\+Escpos\+::\+Escpos\+Image}}
\subsubsection[{is\+Imagick\+Loaded}]{\setlength{\rightskip}{0pt plus 5cm}static Mike42\textbackslash{}\+Escpos\textbackslash{}\+Escpos\+Image\+::is\+Imagick\+Loaded (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}\label{classMike42_1_1Escpos_1_1EscposImage_a57ec8e7158c5c5fb2930c1f185a4b2d7}
\begin{DoxyReturn}{Returns}
boolean True if Imagick is loaded, false otherwise 
\end{DoxyReturn}
\hypertarget{classMike42_1_1Escpos_1_1EscposImage_ac0c246b80a6934a3840968b19517f48c}{}\index{Mike42\+::\+Escpos\+::\+Escpos\+Image@{Mike42\+::\+Escpos\+::\+Escpos\+Image}!load@{load}}
\index{load@{load}!Mike42\+::\+Escpos\+::\+Escpos\+Image@{Mike42\+::\+Escpos\+::\+Escpos\+Image}}
\subsubsection[{load}]{\setlength{\rightskip}{0pt plus 5cm}static Mike42\textbackslash{}\+Escpos\textbackslash{}\+Escpos\+Image\+::load (
\begin{DoxyParamCaption}
\item[{}]{\$filename, }
\item[{}]{\$allow\+Optimisations = {\ttfamily true}, }
\item[{array}]{\$preferred = {\ttfamily \mbox{[}'imagick'}, }
\item[{'gd'}]{, }
\item[{'native'\mbox{]}}]{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}\label{classMike42_1_1Escpos_1_1EscposImage_ac0c246b80a6934a3840968b19517f48c}
This is a convinience method to load an image from file, auto-\/selecting an \hyperlink{classMike42_1_1Escpos_1_1EscposImage}{Escpos\+Image} implementation which uses an available library.

The sub-\/classes can be constructed directly if you know that you will have Imagick or G\+D on the print server.


\begin{DoxyParams}[1]{Parameters}
string & {\em \$filename} & File to load from \\
\hline
bool & {\em \$allow\+Optimisations} & True to allow the fastest rendering shortcuts, false to force the library to read the image into an internal raster format and use P\+H\+P to render the image (slower but less fragile). \\
\hline
array & {\em \$preferred} & Order to try to load libraries in-\/ escpos-\/php supports pluggable image libraries. Items can be 'imagick', 'gd', 'native'. \\
\hline
\end{DoxyParams}

\begin{DoxyExceptions}{Exceptions}
{\em Exception} & Where no suitable library could be found for the type of file being loaded. \\
\hline
\end{DoxyExceptions}
\begin{DoxyReturn}{Returns}
\hyperlink{classMike42_1_1Escpos_1_1EscposImage}{Escpos\+Image} 
\end{DoxyReturn}
\hypertarget{classMike42_1_1Escpos_1_1EscposImage_a5b09aa9a7561759dba76282e5b0647cb}{}\index{Mike42\+::\+Escpos\+::\+Escpos\+Image@{Mike42\+::\+Escpos\+::\+Escpos\+Image}!load\+Image\+Data@{load\+Image\+Data}}
\index{load\+Image\+Data@{load\+Image\+Data}!Mike42\+::\+Escpos\+::\+Escpos\+Image@{Mike42\+::\+Escpos\+::\+Escpos\+Image}}
\subsubsection[{load\+Image\+Data}]{\setlength{\rightskip}{0pt plus 5cm}Mike42\textbackslash{}\+Escpos\textbackslash{}\+Escpos\+Image\+::load\+Image\+Data (
\begin{DoxyParamCaption}
\item[{}]{\$filename = {\ttfamily null}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [protected]}}\label{classMike42_1_1Escpos_1_1EscposImage_a5b09aa9a7561759dba76282e5b0647cb}
Load an image from disk. This default implementation always gives a zero-\/sized image.


\begin{DoxyParams}[1]{Parameters}
string | null & {\em \$filename} & Filename to load from. \\
\hline
\end{DoxyParams}
\hypertarget{classMike42_1_1Escpos_1_1EscposImage_a085b7aab6c7269700d80c8e163aaf365}{}\index{Mike42\+::\+Escpos\+::\+Escpos\+Image@{Mike42\+::\+Escpos\+::\+Escpos\+Image}!set\+Img\+Data@{set\+Img\+Data}}
\index{set\+Img\+Data@{set\+Img\+Data}!Mike42\+::\+Escpos\+::\+Escpos\+Image@{Mike42\+::\+Escpos\+::\+Escpos\+Image}}
\subsubsection[{set\+Img\+Data}]{\setlength{\rightskip}{0pt plus 5cm}Mike42\textbackslash{}\+Escpos\textbackslash{}\+Escpos\+Image\+::set\+Img\+Data (
\begin{DoxyParamCaption}
\item[{}]{\$data}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [protected]}}\label{classMike42_1_1Escpos_1_1EscposImage_a085b7aab6c7269700d80c8e163aaf365}
Set image data.


\begin{DoxyParams}[1]{Parameters}
string & {\em \$data} & Image data to use, string of 1's (black) and 0's (white) in row-\/major order. \\
\hline
\end{DoxyParams}
\hypertarget{classMike42_1_1Escpos_1_1EscposImage_a3ff7e9483ccc19429dfbd214cdde520b}{}\index{Mike42\+::\+Escpos\+::\+Escpos\+Image@{Mike42\+::\+Escpos\+::\+Escpos\+Image}!set\+Img\+Height@{set\+Img\+Height}}
\index{set\+Img\+Height@{set\+Img\+Height}!Mike42\+::\+Escpos\+::\+Escpos\+Image@{Mike42\+::\+Escpos\+::\+Escpos\+Image}}
\subsubsection[{set\+Img\+Height}]{\setlength{\rightskip}{0pt plus 5cm}Mike42\textbackslash{}\+Escpos\textbackslash{}\+Escpos\+Image\+::set\+Img\+Height (
\begin{DoxyParamCaption}
\item[{}]{\$height}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [protected]}}\label{classMike42_1_1Escpos_1_1EscposImage_a3ff7e9483ccc19429dfbd214cdde520b}
Set image height.


\begin{DoxyParams}[1]{Parameters}
int & {\em \$height} & height of the image. \\
\hline
\end{DoxyParams}
\hypertarget{classMike42_1_1Escpos_1_1EscposImage_a27ea4fc9d668db992c8222400f566307}{}\index{Mike42\+::\+Escpos\+::\+Escpos\+Image@{Mike42\+::\+Escpos\+::\+Escpos\+Image}!set\+Img\+Width@{set\+Img\+Width}}
\index{set\+Img\+Width@{set\+Img\+Width}!Mike42\+::\+Escpos\+::\+Escpos\+Image@{Mike42\+::\+Escpos\+::\+Escpos\+Image}}
\subsubsection[{set\+Img\+Width}]{\setlength{\rightskip}{0pt plus 5cm}Mike42\textbackslash{}\+Escpos\textbackslash{}\+Escpos\+Image\+::set\+Img\+Width (
\begin{DoxyParamCaption}
\item[{}]{\$width}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [protected]}}\label{classMike42_1_1Escpos_1_1EscposImage_a27ea4fc9d668db992c8222400f566307}
Set image width.


\begin{DoxyParams}[1]{Parameters}
int & {\em \$width} & width of the image \\
\hline
\end{DoxyParams}
\hypertarget{classMike42_1_1Escpos_1_1EscposImage_afc16075746bef4c0ff311e85660af7a9}{}\index{Mike42\+::\+Escpos\+::\+Escpos\+Image@{Mike42\+::\+Escpos\+::\+Escpos\+Image}!to\+Column\+Format@{to\+Column\+Format}}
\index{to\+Column\+Format@{to\+Column\+Format}!Mike42\+::\+Escpos\+::\+Escpos\+Image@{Mike42\+::\+Escpos\+::\+Escpos\+Image}}
\subsubsection[{to\+Column\+Format}]{\setlength{\rightskip}{0pt plus 5cm}Mike42\textbackslash{}\+Escpos\textbackslash{}\+Escpos\+Image\+::to\+Column\+Format (
\begin{DoxyParamCaption}
\item[{}]{\$double\+Density = {\ttfamily false}}
\end{DoxyParamCaption}
)}\label{classMike42_1_1Escpos_1_1EscposImage_afc16075746bef4c0ff311e85660af7a9}
Output the image in column format.


\begin{DoxyParams}[1]{Parameters}
boolean & {\em \$double\+Density} & True for double density (24px) lines, false for single-\/density (8px) lines. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
string\mbox{[}\mbox{]} an array, one item per line of output. All lines will be of equal size. 
\end{DoxyReturn}
\hypertarget{classMike42_1_1Escpos_1_1EscposImage_abd6a1f6b9d55409246d874461e730df0}{}\index{Mike42\+::\+Escpos\+::\+Escpos\+Image@{Mike42\+::\+Escpos\+::\+Escpos\+Image}!to\+Raster\+Format@{to\+Raster\+Format}}
\index{to\+Raster\+Format@{to\+Raster\+Format}!Mike42\+::\+Escpos\+::\+Escpos\+Image@{Mike42\+::\+Escpos\+::\+Escpos\+Image}}
\subsubsection[{to\+Raster\+Format}]{\setlength{\rightskip}{0pt plus 5cm}Mike42\textbackslash{}\+Escpos\textbackslash{}\+Escpos\+Image\+::to\+Raster\+Format (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{classMike42_1_1Escpos_1_1EscposImage_abd6a1f6b9d55409246d874461e730df0}
Output the image in raster (row) format. This can result in padding on the right of the image, if its width is not divisible by 8.


\begin{DoxyExceptions}{Exceptions}
{\em Exception} & Where the generated data is unsuitable for the printer (indicates a bug or oversized image). \\
\hline
\end{DoxyExceptions}
\begin{DoxyReturn}{Returns}
string The image in raster format. 
\end{DoxyReturn}


\subsection{Member Data Documentation}
\hypertarget{classMike42_1_1Escpos_1_1EscposImage_abbd7d7d81db631a2a555be2906856489}{}\index{Mike42\+::\+Escpos\+::\+Escpos\+Image@{Mike42\+::\+Escpos\+::\+Escpos\+Image}!\$img\+Height@{\$img\+Height}}
\index{\$img\+Height@{\$img\+Height}!Mike42\+::\+Escpos\+::\+Escpos\+Image@{Mike42\+::\+Escpos\+::\+Escpos\+Image}}
\subsubsection[{\$img\+Height}]{\setlength{\rightskip}{0pt plus 5cm}int Mike42\textbackslash{}\+Escpos\textbackslash{}\+Escpos\+Image\+::\$img\+Height = 0\hspace{0.3cm}{\ttfamily [protected]}}\label{classMike42_1_1Escpos_1_1EscposImage_abbd7d7d81db631a2a555be2906856489}
height of the image. \hypertarget{classMike42_1_1Escpos_1_1EscposImage_a16c9f28626c3fe81aec151042a9e5e58}{}\index{Mike42\+::\+Escpos\+::\+Escpos\+Image@{Mike42\+::\+Escpos\+::\+Escpos\+Image}!\$img\+Width@{\$img\+Width}}
\index{\$img\+Width@{\$img\+Width}!Mike42\+::\+Escpos\+::\+Escpos\+Image@{Mike42\+::\+Escpos\+::\+Escpos\+Image}}
\subsubsection[{\$img\+Width}]{\setlength{\rightskip}{0pt plus 5cm}int Mike42\textbackslash{}\+Escpos\textbackslash{}\+Escpos\+Image\+::\$img\+Width = 0\hspace{0.3cm}{\ttfamily [protected]}}\label{classMike42_1_1Escpos_1_1EscposImage_a16c9f28626c3fe81aec151042a9e5e58}
width of the image 

The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
C\+:/www/aplusnet/incahellas.\+com/public\+\_\+html/lib/escpos-\/php-\/development/src/\+Mike42/\+Escpos/Escpos\+Image.\+php\end{DoxyCompactItemize}
