\section{Tk\-Photo Class Reference}
\label{class_tk_photo}\index{TkPhoto@{TkPhoto}}
Photo represent loaded image in shell.  


{\tt \#include $<$tk\_\-photo.h$>$}

Inheritance diagram for Tk\-Photo::\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3cm]{class_tk_photo}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
const char $\ast$ {\bf get\-Type} () const 
\begin{CompactList}\small\item\em Return type of class. \item\end{CompactList}\item 
{\bf Tk\-Photo} ({\bf Ptr}$<$ {\bf Tcl\-Interp} $>$ \&interp, const char $\ast$file\-Name)
\item 
const string \& {\bf to\-String} () const 
\begin{CompactList}\small\item\em Simple text dump. \item\end{CompactList}\item 
void {\bf get\-Size} (int $\ast$width, int $\ast$height) const 
\item 
void {\bf set\-Size} (int width, int height)
\end{CompactItemize}


\subsection{Detailed Description}
Photo represent loaded image in shell. 

\begin{Desc}
\item[Date:]01-12-2006\end{Desc}
\begin{Desc}
\item[Author:]Ondrej Svejdar\end{Desc}
\begin{Desc}
\item[{\bf Todo}]Photo can be as well accessed like widget. See if it can be inherited from {\bf Tk\-Base}{\rm (p.\,\pageref{class_tk_base})}.\end{Desc}
\begin{Desc}
\item[{\bf Bug}]\end{Desc}




\subsection{Constructor \& Destructor Documentation}
\index{TkPhoto@{Tk\-Photo}!TkPhoto@{TkPhoto}}
\index{TkPhoto@{TkPhoto}!TkPhoto@{Tk\-Photo}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Tk\-Photo::Tk\-Photo ({\bf Ptr}$<$ {\bf Tcl\-Interp} $>$ \& {\em interp}, const char $\ast$ {\em file\-Name})\hspace{0.3cm}{\tt  [inline]}}\label{class_tk_photo_712797f1d5423b7b6459a66d5773d31d}


ctor NOTE: Not all image types are supported. You can even register your own image type handler. Base Tk distribution comes with PPM/PGM and GIF formats. Loading unsuported image type would lead to blank image. For details see description of \char`\"{}photo\char`\"{} command in the Tk manual pages. \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em interp}]interpret \item[{\em file\-Name}]name of file with image \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]\end{Desc}


\subsection{Member Function Documentation}
\index{TkPhoto@{Tk\-Photo}!getSize@{getSize}}
\index{getSize@{getSize}!TkPhoto@{Tk\-Photo}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Tk\-Photo::get\-Size (int $\ast$ {\em width}, int $\ast$ {\em height}) const\hspace{0.3cm}{\tt  [inline]}}\label{class_tk_photo_6988027b1a50ecaf30aa9782fc764f43}


Return size of image \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em width}]image width \item[{\em height}]image height \end{description}
\end{Desc}
\index{TkPhoto@{Tk\-Photo}!getType@{getType}}
\index{getType@{getType}!TkPhoto@{Tk\-Photo}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const char$\ast$ Tk\-Photo::get\-Type () const\hspace{0.3cm}{\tt  [inline, virtual]}}\label{class_tk_photo_1413702cbda682553d02b08afccebfc3}


Return type of class. 

\begin{Desc}
\item[Returns:]type of class \end{Desc}


Reimplemented from {\bf TXml\-Object} {\rm (p.\,\pageref{class_t_xml_object_1413702cbda682553d02b08afccebfc3})}.\index{TkPhoto@{Tk\-Photo}!setSize@{setSize}}
\index{setSize@{setSize}!TkPhoto@{Tk\-Photo}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Tk\-Photo::set\-Size (int {\em width}, int {\em height})\hspace{0.3cm}{\tt  [inline]}}\label{class_tk_photo_79562b9b23e87f4b3fc7285e1ce6f4f9}


Resize image to desired size \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em width}]width \item[{\em height}]height \end{description}
\end{Desc}
\index{TkPhoto@{Tk\-Photo}!toString@{toString}}
\index{toString@{toString}!TkPhoto@{Tk\-Photo}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const string\& Tk\-Photo::to\-String () const\hspace{0.3cm}{\tt  [inline, virtual]}}\label{class_tk_photo_ca11bae3941982bbc2db10b06d450336}


Simple text dump. 

\begin{Desc}
\item[Returns:]if not overriden, it returns type of class \end{Desc}


Reimplemented from {\bf TObject} {\rm (p.\,\pageref{class_t_object_ca11bae3941982bbc2db10b06d450336})}.

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
H:/projs/dot\-NET/eda/src/tk/gui/image/tk\_\-photo.h\item 
H:/projs/dot\-NET/eda/src/tk/gui/image/tk\_\-photo.cpp\end{CompactItemize}
