\hypertarget{group__Elm__Photocam__Group}{}\doxysection{Photocam}
\label{group__Elm__Photocam__Group}\index{Photocam@{Photocam}}
\doxysubsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \mbox{\hyperlink{struct__Elm__Photocam__Progress}{\+\_\+\+Elm\+\_\+\+Photocam\+\_\+\+Progress}}
\item 
struct \mbox{\hyperlink{struct__Elm__Photocam__Error}{\+\_\+\+Elm\+\_\+\+Photocam\+\_\+\+Error}}
\end{DoxyCompactItemize}
\doxysubsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
typedef struct \mbox{\hyperlink{struct__Elm__Photocam__Progress}{\+\_\+\+Elm\+\_\+\+Photocam\+\_\+\+Progress}} \mbox{\hyperlink{group__Elm__Photocam__Group_ga53a645d0cb128b12cf858ead33bf28d6}{Elm\+\_\+\+Photocam\+\_\+\+Progress}}
\begin{DoxyCompactList}\small\item\em Structure associated with smart callback \textquotesingle{}download,progress\textquotesingle{}. \end{DoxyCompactList}\item 
typedef struct \mbox{\hyperlink{struct__Elm__Photocam__Error}{\+\_\+\+Elm\+\_\+\+Photocam\+\_\+\+Error}} \mbox{\hyperlink{group__Elm__Photocam__Group_ga3ddf6ac3c28775515b59ce9661f2a4b2}{Elm\+\_\+\+Photocam\+\_\+\+Error}}
\begin{DoxyCompactList}\small\item\em Structure associated with smart callback \textquotesingle{}download,error\textquotesingle{}. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void \mbox{\hyperlink{group__Elm__Photocam__Group_ga384260d83faa993521507a693da93758}{elm\+\_\+photocam\+\_\+gesture\+\_\+enabled\+\_\+set}} (Efl\+\_\+\+Ui\+\_\+\+Image\+\_\+\+Zoomable $\ast$obj, \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} gesture)
\begin{DoxyCompactList}\small\item\em Set the gesture state for photocam. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__Elm__Photocam__Group_gaedeeb7339f7908ccc18c6a124d7935c8}{elm\+\_\+photocam\+\_\+gesture\+\_\+enabled\+\_\+get}} (const Efl\+\_\+\+Ui\+\_\+\+Image\+\_\+\+Zoomable $\ast$obj)
\begin{DoxyCompactList}\small\item\em Get the gesture state for photocam. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$ \mbox{\hyperlink{group__Elm__Photocam__Group_gaca84805f2b6169d7f7949bd10d5f9e4d}{elm\+\_\+photocam\+\_\+add}} (\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$parent)
\begin{DoxyCompactList}\small\item\em Add a new Photocam object. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{group__Elm__Photocam__Group_ga51a9dd5b4e7c6593e9734d1838e11266}{elm\+\_\+photocam\+\_\+image\+\_\+region\+\_\+bring\+\_\+in}} (\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$obj, int x, int y, int w, int h)
\begin{DoxyCompactList}\small\item\em Bring in the viewed portion of the image. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Evas__Image_ga17a0211044defa51aa3ceaadaa4e53c2}{Evas\+\_\+\+Load\+\_\+\+Error}} \mbox{\hyperlink{group__Elm__Photocam__Group_gaa4cb6e360aab7307380ac92de4e04dd2}{elm\+\_\+photocam\+\_\+file\+\_\+set}} (\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$obj, const char $\ast$file)
\begin{DoxyCompactList}\small\item\em Set the photo file to be shown. \end{DoxyCompactList}\item 
const char $\ast$ \mbox{\hyperlink{group__Elm__Photocam__Group_ga5403ff3dfb13c0d1e09c4feae615df50}{elm\+\_\+photocam\+\_\+file\+\_\+get}} (const \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$obj)
\begin{DoxyCompactList}\small\item\em Returns the path of the current image file. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{group__Elm__Photocam__Group_gac575a889dbbdffb361c14160d2cbd4d4}{elm\+\_\+photocam\+\_\+image\+\_\+orient\+\_\+set}} (\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$obj, \mbox{\hyperlink{group__Evas__Object__Image_ga6b24f73f2189831eaab4205d54b0c537}{Evas\+\_\+\+Image\+\_\+\+Orient}} orient)
\begin{DoxyCompactList}\small\item\em Set the photocam image orientation. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Evas__Object__Image_ga6b24f73f2189831eaab4205d54b0c537}{Evas\+\_\+\+Image\+\_\+\+Orient}} \mbox{\hyperlink{group__Elm__Photocam__Group_gae9bb89f71776f1543e502ea355de229e}{elm\+\_\+photocam\+\_\+image\+\_\+orient\+\_\+get}} (const \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$obj)
\begin{DoxyCompactList}\small\item\em Get the photocam image orientation. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$ \mbox{\hyperlink{group__Elm__Photocam__Group_ga9dbbd3f6beed8e24d45d290e3bf1655f}{elm\+\_\+photocam\+\_\+internal\+\_\+image\+\_\+get}} (const \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$obj)
\begin{DoxyCompactList}\small\item\em Get the internal low-\/res image used for photocam. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{group__Elm__Photocam__Group_gafb190eb4315c414275b71e8462822693}{elm\+\_\+photocam\+\_\+image\+\_\+region\+\_\+show}} (\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$obj, int x, int y, int w, int h)
\begin{DoxyCompactList}\small\item\em Set the viewed region of the image. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{group__Elm__Photocam__Group_gae578f8117d96e92a27037947fabd3d15}{elm\+\_\+photocam\+\_\+image\+\_\+size\+\_\+get}} (const \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$obj, int $\ast$w, int $\ast$h)
\begin{DoxyCompactList}\small\item\em Get the current image pixel width and height. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__Elm__Photocam__Group_ga9da73679d837d10553ea4c9d701394a2}{elm\+\_\+photocam\+\_\+paused\+\_\+get}} (const \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$obj)
\begin{DoxyCompactList}\small\item\em Get the paused state for photocam. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{group__Elm__Photocam__Group_ga23019feda295f05f93d3ae4800190785}{elm\+\_\+photocam\+\_\+paused\+\_\+set}} (\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$obj, \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} paused)
\begin{DoxyCompactList}\small\item\em Set the paused state for photocam. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{group__Elm__Photocam__Group_ga2f63118a574a0c42a615c0da60cf622a}{elm\+\_\+photocam\+\_\+zoom\+\_\+set}} (\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$obj, double zoom)
\begin{DoxyCompactList}\small\item\em Set the zoom level of the photo. \end{DoxyCompactList}\item 
double \mbox{\hyperlink{group__Elm__Photocam__Group_gaae3133f1b16eeb16deb2798c85c4a1a4}{elm\+\_\+photocam\+\_\+zoom\+\_\+get}} (const \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$obj)
\begin{DoxyCompactList}\small\item\em Get the zoom level of the photo. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{group__Elm__Photocam__Group_ga36acb49e545f2426115f74f4b33eb67f}{elm\+\_\+photocam\+\_\+zoom\+\_\+mode\+\_\+set}} (\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$obj, Elm\+\_\+\+Photocam\+\_\+\+Zoom\+\_\+\+Mode mode)
\begin{DoxyCompactList}\small\item\em Set the zoom mode. \end{DoxyCompactList}\item 
Elm\+\_\+\+Photocam\+\_\+\+Zoom\+\_\+\+Mode \mbox{\hyperlink{group__Elm__Photocam__Group_ga6c3776144fb48021b4ab83271cd886b9}{elm\+\_\+photocam\+\_\+zoom\+\_\+mode\+\_\+get}} (const \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$obj)
\begin{DoxyCompactList}\small\item\em Get the zoom mode. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
 
\begin{DoxyImageNoCaption}
  \mbox{\includegraphics[width=\textwidth,height=\textheight/2,keepaspectratio=true]{photocam_inheritance_tree}}
\end{DoxyImageNoCaption}


 
\begin{DoxyImageNoCaption}
  \mbox{\includegraphics[width=\textwidth,height=\textheight/2,keepaspectratio=true]{img/widget/photocam/preview-00}}
\end{DoxyImageNoCaption}


Photocam is a widget meant specifically for displaying high-\/resolution digital camera photos, giving speedy feedback (fast load), zooming and panning as well as fitting logic, all with low memory footprint. It is entirely focused on {\bfseries{jpeg}} images, and takes advantage of properties of the jpeg format (via Evas loader features in the jpeg loader).

Signals that you can add callbacks for are\+: \begin{DoxyItemize}
\item {\ttfamily \char`\"{}clicked\char`\"{}} -\/ This is called when a user has clicked the photo without dragging around. \item {\ttfamily \char`\"{}press\char`\"{}} -\/ This is called when a user has pressed down on the photo. \item {\ttfamily \char`\"{}longpressed\char`\"{}} -\/ This is called when a user has pressed down on the photo for a long time without dragging around. \item {\ttfamily \char`\"{}clicked,double\char`\"{}} -\/ This is called when a user has double-\/clicked the photo. \item {\ttfamily \char`\"{}load\char`\"{}} -\/ Photo load begins. \item {\ttfamily \char`\"{}loaded\char`\"{}} -\/ This is called when the image file load is complete for the first view (low resolution blurry version). \item {\ttfamily \char`\"{}load,detail\char`\"{}} -\/ Photo detailed data load begins. \item {\ttfamily \char`\"{}loaded,detail\char`\"{}} -\/ This is called when the image file load is complete for the detailed image data (full resolution needed). \item {\ttfamily \char`\"{}zoom,start\char`\"{}} -\/ Zoom animation started. \item {\ttfamily \char`\"{}zoom,stop\char`\"{}} -\/ Zoom animation stopped. \item {\ttfamily \char`\"{}zoom,change\char`\"{}} -\/ Zoom changed when using an auto zoom mode. \item {\ttfamily \char`\"{}scroll\char`\"{}} -\/ the content has been scrolled (moved) \item {\ttfamily \char`\"{}scroll,anim,start\char`\"{}} -\/ scrolling animation has started \item {\ttfamily \char`\"{}scroll,anim,stop\char`\"{}} -\/ scrolling animation has stopped \item {\ttfamily \char`\"{}scroll,drag,start\char`\"{}} -\/ dragging the contents around has started \item {\ttfamily \char`\"{}scroll,drag,stop\char`\"{}} -\/ dragging the contents around has stopped \item {\ttfamily \char`\"{}focused\char`\"{}} -\/ When the photocam has received focus. (since 1.\+8) \item {\ttfamily \char`\"{}unfocused\char`\"{}} -\/ When the photocam has lost focus. (since 1.\+8)\end{DoxyItemize}
This widget implements the \mbox{\hyperlink{group__Widget_elm-scrollable-interface}{The Elementary Scrollable Interface}} interface, so that all (non-\/deprecated) functions for the base Scroller widget also work for photocam objects.

Some calls on the photocam\textquotesingle{}s API are marked as {\bfseries{deprecated}}, as they just wrap the scrollable widgets counterpart functions. Use the ones we point you to, for each case of deprecation here, instead -- eventually the deprecated ones will be discarded (next major release).

\mbox{\hyperlink{tutorial_photocam}{Photocam example}} shows the API in action. 

\doxysubsection{Typedef Documentation}
\mbox{\Hypertarget{group__Elm__Photocam__Group_ga53a645d0cb128b12cf858ead33bf28d6}\label{group__Elm__Photocam__Group_ga53a645d0cb128b12cf858ead33bf28d6}} 
\index{Photocam@{Photocam}!Elm\_Photocam\_Progress@{Elm\_Photocam\_Progress}}
\index{Elm\_Photocam\_Progress@{Elm\_Photocam\_Progress}!Photocam@{Photocam}}
\doxysubsubsection{\texorpdfstring{Elm\_Photocam\_Progress}{Elm\_Photocam\_Progress}}
{\footnotesize\ttfamily typedef struct \mbox{\hyperlink{struct__Elm__Photocam__Progress}{\+\_\+\+Elm\+\_\+\+Photocam\+\_\+\+Progress}} \mbox{\hyperlink{group__Elm__Photocam__Group_ga53a645d0cb128b12cf858ead33bf28d6}{Elm\+\_\+\+Photocam\+\_\+\+Progress}}}



Structure associated with smart callback \textquotesingle{}download,progress\textquotesingle{}. 

\begin{DoxySince}{Since}
1.\+8 
\end{DoxySince}
\mbox{\Hypertarget{group__Elm__Photocam__Group_ga3ddf6ac3c28775515b59ce9661f2a4b2}\label{group__Elm__Photocam__Group_ga3ddf6ac3c28775515b59ce9661f2a4b2}} 
\index{Photocam@{Photocam}!Elm\_Photocam\_Error@{Elm\_Photocam\_Error}}
\index{Elm\_Photocam\_Error@{Elm\_Photocam\_Error}!Photocam@{Photocam}}
\doxysubsubsection{\texorpdfstring{Elm\_Photocam\_Error}{Elm\_Photocam\_Error}}
{\footnotesize\ttfamily typedef struct \mbox{\hyperlink{struct__Elm__Photocam__Error}{\+\_\+\+Elm\+\_\+\+Photocam\+\_\+\+Error}} \mbox{\hyperlink{group__Elm__Photocam__Group_ga3ddf6ac3c28775515b59ce9661f2a4b2}{Elm\+\_\+\+Photocam\+\_\+\+Error}}}



Structure associated with smart callback \textquotesingle{}download,error\textquotesingle{}. 

\begin{DoxySince}{Since}
1.\+8 
\end{DoxySince}


\doxysubsection{Function Documentation}
\mbox{\Hypertarget{group__Elm__Photocam__Group_ga384260d83faa993521507a693da93758}\label{group__Elm__Photocam__Group_ga384260d83faa993521507a693da93758}} 
\index{Photocam@{Photocam}!elm\_photocam\_gesture\_enabled\_set@{elm\_photocam\_gesture\_enabled\_set}}
\index{elm\_photocam\_gesture\_enabled\_set@{elm\_photocam\_gesture\_enabled\_set}!Photocam@{Photocam}}
\doxysubsubsection{\texorpdfstring{elm\_photocam\_gesture\_enabled\_set()}{elm\_photocam\_gesture\_enabled\_set()}}
{\footnotesize\ttfamily void elm\+\_\+photocam\+\_\+gesture\+\_\+enabled\+\_\+set (\begin{DoxyParamCaption}\item[{Efl\+\_\+\+Ui\+\_\+\+Image\+\_\+\+Zoomable $\ast$}]{obj,  }\item[{\mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}}}]{gesture }\end{DoxyParamCaption})}



Set the gesture state for photocam. 

This sets the gesture state to on or off for photocam. The default is off. This will start multi touch zooming.


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em obj} & The object. \\
\hline
\mbox{\texttt{ in}}  & {\em gesture} & The gesture state. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{group__Elm__Photocam__Group_gaedeeb7339f7908ccc18c6a124d7935c8}\label{group__Elm__Photocam__Group_gaedeeb7339f7908ccc18c6a124d7935c8}} 
\index{Photocam@{Photocam}!elm\_photocam\_gesture\_enabled\_get@{elm\_photocam\_gesture\_enabled\_get}}
\index{elm\_photocam\_gesture\_enabled\_get@{elm\_photocam\_gesture\_enabled\_get}!Photocam@{Photocam}}
\doxysubsubsection{\texorpdfstring{elm\_photocam\_gesture\_enabled\_get()}{elm\_photocam\_gesture\_enabled\_get()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} elm\+\_\+photocam\+\_\+gesture\+\_\+enabled\+\_\+get (\begin{DoxyParamCaption}\item[{const Efl\+\_\+\+Ui\+\_\+\+Image\+\_\+\+Zoomable $\ast$}]{obj }\end{DoxyParamCaption})}



Get the gesture state for photocam. 

This gets the current gesture state for the photocam object.


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em obj} & The object.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The gesture state. 
\end{DoxyReturn}
\mbox{\Hypertarget{group__Elm__Photocam__Group_gaca84805f2b6169d7f7949bd10d5f9e4d}\label{group__Elm__Photocam__Group_gaca84805f2b6169d7f7949bd10d5f9e4d}} 
\index{Photocam@{Photocam}!elm\_photocam\_add@{elm\_photocam\_add}}
\index{elm\_photocam\_add@{elm\_photocam\_add}!Photocam@{Photocam}}
\doxysubsubsection{\texorpdfstring{elm\_photocam\_add()}{elm\_photocam\_add()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$ elm\+\_\+photocam\+\_\+add (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$}]{parent }\end{DoxyParamCaption})}



Add a new Photocam object. 


\begin{DoxyParams}{Parameters}
{\em parent} & The parent object \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The new object or NULL if it cannot be created 
\end{DoxyReturn}


References \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}.

\mbox{\Hypertarget{group__Elm__Photocam__Group_ga51a9dd5b4e7c6593e9734d1838e11266}\label{group__Elm__Photocam__Group_ga51a9dd5b4e7c6593e9734d1838e11266}} 
\index{Photocam@{Photocam}!elm\_photocam\_image\_region\_bring\_in@{elm\_photocam\_image\_region\_bring\_in}}
\index{elm\_photocam\_image\_region\_bring\_in@{elm\_photocam\_image\_region\_bring\_in}!Photocam@{Photocam}}
\doxysubsubsection{\texorpdfstring{elm\_photocam\_image\_region\_bring\_in()}{elm\_photocam\_image\_region\_bring\_in()}}
{\footnotesize\ttfamily void elm\+\_\+photocam\+\_\+image\+\_\+region\+\_\+bring\+\_\+in (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$}]{obj,  }\item[{int}]{x,  }\item[{int}]{y,  }\item[{int}]{w,  }\item[{int}]{h }\end{DoxyParamCaption})}



Bring in the viewed portion of the image. 


\begin{DoxyParams}{Parameters}
{\em obj} & The photocam object \\
\hline
{\em x} & X-\/coordinate of region in image original pixels \\
\hline
{\em y} & Y-\/coordinate of region in image original pixels \\
\hline
{\em w} & Width of region in image original pixels \\
\hline
{\em h} & Height of region in image original pixels\\
\hline
\end{DoxyParams}
This shows the region of the image using animation. 

References \mbox{\hyperlink{group__Eina__Rectangle__Group_gad57f0812a5c05eb7786524e4d5470dce}{EINA\+\_\+\+RECT}}, and \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}}.

\mbox{\Hypertarget{group__Elm__Photocam__Group_gaa4cb6e360aab7307380ac92de4e04dd2}\label{group__Elm__Photocam__Group_gaa4cb6e360aab7307380ac92de4e04dd2}} 
\index{Photocam@{Photocam}!elm\_photocam\_file\_set@{elm\_photocam\_file\_set}}
\index{elm\_photocam\_file\_set@{elm\_photocam\_file\_set}!Photocam@{Photocam}}
\doxysubsubsection{\texorpdfstring{elm\_photocam\_file\_set()}{elm\_photocam\_file\_set()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Evas__Image_ga17a0211044defa51aa3ceaadaa4e53c2}{Evas\+\_\+\+Load\+\_\+\+Error}} elm\+\_\+photocam\+\_\+file\+\_\+set (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$}]{obj,  }\item[{const char $\ast$}]{file }\end{DoxyParamCaption})}



Set the photo file to be shown. 

\begin{DoxyReturn}{Returns}
The return error (see EVAS\+\_\+\+LOAD\+\_\+\+ERROR\+\_\+\+NONE, EVAS\+\_\+\+LOAD\+\_\+\+ERROR\+\_\+\+GENERIC etc.)
\end{DoxyReturn}
This sets (and shows) the specified file (with a relative or absolute path) and will return a load error (same error that \mbox{\hyperlink{group__Evas__Object__Image_ga10a0117fbd14e665a988cd4913c324d9}{evas\+\_\+object\+\_\+image\+\_\+load\+\_\+error\+\_\+get()}} will return). The image will change and adjust its size at this point and begin a background load process for this photo that at some time in the future will be displayed at the full quality needed.


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em file} & The photo file \\
\hline
\end{DoxyParams}


References \mbox{\hyperlink{group__Eina__Error__Group_gaf1afffc7dc1e11101f47c5d14d9c5347}{eina\+\_\+error\+\_\+get()}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}, \mbox{\hyperlink{group__Evas__Image_gga17a0211044defa51aa3ceaadaa4e53c2a7ba46c8865335ca085213b7dbf039a75}{EVAS\+\_\+\+LOAD\+\_\+\+ERROR\+\_\+\+CORRUPT\+\_\+\+FILE}}, \mbox{\hyperlink{group__Evas__Image_gga17a0211044defa51aa3ceaadaa4e53c2a0230814bb1fe9cb194e253e840aa8529}{EVAS\+\_\+\+LOAD\+\_\+\+ERROR\+\_\+\+DOES\+\_\+\+NOT\+\_\+\+EXIST}}, \mbox{\hyperlink{group__Evas__Image_gga17a0211044defa51aa3ceaadaa4e53c2ab9e5061c8c74bcd8a283fb7598a8b81d}{EVAS\+\_\+\+LOAD\+\_\+\+ERROR\+\_\+\+GENERIC}}, \mbox{\hyperlink{group__Evas__Image_gga17a0211044defa51aa3ceaadaa4e53c2a016233a6ae27765a3aa2759753c112ac}{EVAS\+\_\+\+LOAD\+\_\+\+ERROR\+\_\+\+NONE}}, \mbox{\hyperlink{group__Evas__Image_gga17a0211044defa51aa3ceaadaa4e53c2a17e04ec01edcabf21f33537872fb7200}{EVAS\+\_\+\+LOAD\+\_\+\+ERROR\+\_\+\+PERMISSION\+\_\+\+DENIED}}, \mbox{\hyperlink{group__Evas__Image_gga17a0211044defa51aa3ceaadaa4e53c2a22a36ddde85a5fd1c1f2e68d7052f6f4}{EVAS\+\_\+\+LOAD\+\_\+\+ERROR\+\_\+\+RESOURCE\+\_\+\+ALLOCATION\+\_\+\+FAILED}}, and \mbox{\hyperlink{group__Evas__Image_gga17a0211044defa51aa3ceaadaa4e53c2a604b6c7bf6345c773d3083707d9f0a80}{EVAS\+\_\+\+LOAD\+\_\+\+ERROR\+\_\+\+UNKNOWN\+\_\+\+FORMAT}}.

\mbox{\Hypertarget{group__Elm__Photocam__Group_ga5403ff3dfb13c0d1e09c4feae615df50}\label{group__Elm__Photocam__Group_ga5403ff3dfb13c0d1e09c4feae615df50}} 
\index{Photocam@{Photocam}!elm\_photocam\_file\_get@{elm\_photocam\_file\_get}}
\index{elm\_photocam\_file\_get@{elm\_photocam\_file\_get}!Photocam@{Photocam}}
\doxysubsubsection{\texorpdfstring{elm\_photocam\_file\_get()}{elm\_photocam\_file\_get()}}
{\footnotesize\ttfamily const char $\ast$ elm\+\_\+photocam\+\_\+file\+\_\+get (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$}]{obj }\end{DoxyParamCaption})}



Returns the path of the current image file. 

\begin{DoxyReturn}{Returns}
Returns the path
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Elm__Photocam__Group_gaa4cb6e360aab7307380ac92de4e04dd2}{elm\+\_\+photocam\+\_\+file\+\_\+set()}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__Elm__Photocam__Group_gac575a889dbbdffb361c14160d2cbd4d4}\label{group__Elm__Photocam__Group_gac575a889dbbdffb361c14160d2cbd4d4}} 
\index{Photocam@{Photocam}!elm\_photocam\_image\_orient\_set@{elm\_photocam\_image\_orient\_set}}
\index{elm\_photocam\_image\_orient\_set@{elm\_photocam\_image\_orient\_set}!Photocam@{Photocam}}
\doxysubsubsection{\texorpdfstring{elm\_photocam\_image\_orient\_set()}{elm\_photocam\_image\_orient\_set()}}
{\footnotesize\ttfamily void elm\+\_\+photocam\+\_\+image\+\_\+orient\+\_\+set (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$}]{obj,  }\item[{\mbox{\hyperlink{group__Evas__Object__Image_ga6b24f73f2189831eaab4205d54b0c537}{Evas\+\_\+\+Image\+\_\+\+Orient}}}]{orient }\end{DoxyParamCaption})}



Set the photocam image orientation. 

This function allows to rotate or flip the photocam image.


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em orient} & The photocam image orientation \mbox{\hyperlink{group__Evas__Object__Image_ga6b24f73f2189831eaab4205d54b0c537}{Evas\+\_\+\+Image\+\_\+\+Orient}}. Default is \mbox{\hyperlink{group__Evas__Object__Image_gga6b24f73f2189831eaab4205d54b0c537a78d4991aaf4e337c69c23fdbc0111d47}{EVAS\+\_\+\+IMAGE\+\_\+\+ORIENT\+\_\+\+NONE}}.\\
\hline
\end{DoxyParams}
\begin{DoxySince}{Since}
1.\+14 
\end{DoxySince}
\mbox{\Hypertarget{group__Elm__Photocam__Group_gae9bb89f71776f1543e502ea355de229e}\label{group__Elm__Photocam__Group_gae9bb89f71776f1543e502ea355de229e}} 
\index{Photocam@{Photocam}!elm\_photocam\_image\_orient\_get@{elm\_photocam\_image\_orient\_get}}
\index{elm\_photocam\_image\_orient\_get@{elm\_photocam\_image\_orient\_get}!Photocam@{Photocam}}
\doxysubsubsection{\texorpdfstring{elm\_photocam\_image\_orient\_get()}{elm\_photocam\_image\_orient\_get()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Evas__Object__Image_ga6b24f73f2189831eaab4205d54b0c537}{Evas\+\_\+\+Image\+\_\+\+Orient}} elm\+\_\+photocam\+\_\+image\+\_\+orient\+\_\+get (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$}]{obj }\end{DoxyParamCaption})}



Get the photocam image orientation. 

\begin{DoxyReturn}{Returns}
The photocam image orientation \mbox{\hyperlink{group__Evas__Object__Image_ga6b24f73f2189831eaab4205d54b0c537}{Evas\+\_\+\+Image\+\_\+\+Orient}}. Default is \mbox{\hyperlink{group__Evas__Object__Image_gga6b24f73f2189831eaab4205d54b0c537a78d4991aaf4e337c69c23fdbc0111d47}{EVAS\+\_\+\+IMAGE\+\_\+\+ORIENT\+\_\+\+NONE}}.
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\+14 
\end{DoxySince}


References \mbox{\hyperlink{group__Evas__Object__Image_gga6b24f73f2189831eaab4205d54b0c537a78d4991aaf4e337c69c23fdbc0111d47}{EVAS\+\_\+\+IMAGE\+\_\+\+ORIENT\+\_\+\+NONE}}.

\mbox{\Hypertarget{group__Elm__Photocam__Group_ga9dbbd3f6beed8e24d45d290e3bf1655f}\label{group__Elm__Photocam__Group_ga9dbbd3f6beed8e24d45d290e3bf1655f}} 
\index{Photocam@{Photocam}!elm\_photocam\_internal\_image\_get@{elm\_photocam\_internal\_image\_get}}
\index{elm\_photocam\_internal\_image\_get@{elm\_photocam\_internal\_image\_get}!Photocam@{Photocam}}
\doxysubsubsection{\texorpdfstring{elm\_photocam\_internal\_image\_get()}{elm\_photocam\_internal\_image\_get()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$ elm\+\_\+photocam\+\_\+internal\+\_\+image\+\_\+get (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$}]{obj }\end{DoxyParamCaption})}



Get the internal low-\/res image used for photocam. 

This gets the internal image object inside photocam. Do not modify it. It is for inspection only, and hooking callbacks to. Nothing else. It may be deleted at any time as well.

\begin{DoxyReturn}{Returns}
The internal image object handle or {\ttfamily null} 
\end{DoxyReturn}
\mbox{\Hypertarget{group__Elm__Photocam__Group_gafb190eb4315c414275b71e8462822693}\label{group__Elm__Photocam__Group_gafb190eb4315c414275b71e8462822693}} 
\index{Photocam@{Photocam}!elm\_photocam\_image\_region\_show@{elm\_photocam\_image\_region\_show}}
\index{elm\_photocam\_image\_region\_show@{elm\_photocam\_image\_region\_show}!Photocam@{Photocam}}
\doxysubsubsection{\texorpdfstring{elm\_photocam\_image\_region\_show()}{elm\_photocam\_image\_region\_show()}}
{\footnotesize\ttfamily void elm\+\_\+photocam\+\_\+image\+\_\+region\+\_\+show (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$}]{obj,  }\item[{int}]{x,  }\item[{int}]{y,  }\item[{int}]{w,  }\item[{int}]{h }\end{DoxyParamCaption})}



Set the viewed region of the image. 

This shows the region of the image without using animation.


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em x} & X-\/coordinate of region in image original pixels \\
\hline
\mbox{\texttt{ in}}  & {\em y} & Y-\/coordinate of region in image original pixels \\
\hline
\mbox{\texttt{ in}}  & {\em w} & Width of region in image original pixels \\
\hline
\mbox{\texttt{ in}}  & {\em h} & Height of region in image original pixels \\
\hline
\end{DoxyParams}


References \mbox{\hyperlink{group__Eina__Rectangle__Group_gad57f0812a5c05eb7786524e4d5470dce}{EINA\+\_\+\+RECT}}.

\mbox{\Hypertarget{group__Elm__Photocam__Group_gae578f8117d96e92a27037947fabd3d15}\label{group__Elm__Photocam__Group_gae578f8117d96e92a27037947fabd3d15}} 
\index{Photocam@{Photocam}!elm\_photocam\_image\_size\_get@{elm\_photocam\_image\_size\_get}}
\index{elm\_photocam\_image\_size\_get@{elm\_photocam\_image\_size\_get}!Photocam@{Photocam}}
\doxysubsubsection{\texorpdfstring{elm\_photocam\_image\_size\_get()}{elm\_photocam\_image\_size\_get()}}
{\footnotesize\ttfamily void elm\+\_\+photocam\+\_\+image\+\_\+size\+\_\+get (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$}]{obj,  }\item[{int $\ast$}]{w,  }\item[{int $\ast$}]{h }\end{DoxyParamCaption})}



Get the current image pixel width and height. 

This gets the current photo pixel width and height (for the original). The size will be returned in the integers {\ttfamily w} and {\ttfamily h} that are pointed to.


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ out}}  & {\em w} & A pointer to the width return \\
\hline
\mbox{\texttt{ out}}  & {\em h} & A pointer to the height return \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{group__Elm__Photocam__Group_ga9da73679d837d10553ea4c9d701394a2}\label{group__Elm__Photocam__Group_ga9da73679d837d10553ea4c9d701394a2}} 
\index{Photocam@{Photocam}!elm\_photocam\_paused\_get@{elm\_photocam\_paused\_get}}
\index{elm\_photocam\_paused\_get@{elm\_photocam\_paused\_get}!Photocam@{Photocam}}
\doxysubsubsection{\texorpdfstring{elm\_photocam\_paused\_get()}{elm\_photocam\_paused\_get()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} elm\+\_\+photocam\+\_\+paused\+\_\+get (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$}]{obj }\end{DoxyParamCaption})}



Get the paused state for photocam. 

This gets the current paused state for the photocam object.

\begin{DoxyReturn}{Returns}
The pause state. 
\end{DoxyReturn}
\mbox{\Hypertarget{group__Elm__Photocam__Group_ga23019feda295f05f93d3ae4800190785}\label{group__Elm__Photocam__Group_ga23019feda295f05f93d3ae4800190785}} 
\index{Photocam@{Photocam}!elm\_photocam\_paused\_set@{elm\_photocam\_paused\_set}}
\index{elm\_photocam\_paused\_set@{elm\_photocam\_paused\_set}!Photocam@{Photocam}}
\doxysubsubsection{\texorpdfstring{elm\_photocam\_paused\_set()}{elm\_photocam\_paused\_set()}}
{\footnotesize\ttfamily void elm\+\_\+photocam\+\_\+paused\+\_\+set (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$}]{obj,  }\item[{\mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}}}]{paused }\end{DoxyParamCaption})}



Set the paused state for photocam. 

This sets the paused state to on or off for photocam. The default is off. This will stop zooming using animation on zoom level changes and change instantly. This will stop any existing animations that are running.


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em paused} & The pause state. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{group__Elm__Photocam__Group_ga2f63118a574a0c42a615c0da60cf622a}\label{group__Elm__Photocam__Group_ga2f63118a574a0c42a615c0da60cf622a}} 
\index{Photocam@{Photocam}!elm\_photocam\_zoom\_set@{elm\_photocam\_zoom\_set}}
\index{elm\_photocam\_zoom\_set@{elm\_photocam\_zoom\_set}!Photocam@{Photocam}}
\doxysubsubsection{\texorpdfstring{elm\_photocam\_zoom\_set()}{elm\_photocam\_zoom\_set()}}
{\footnotesize\ttfamily void elm\+\_\+photocam\+\_\+zoom\+\_\+set (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$}]{obj,  }\item[{double}]{zoom }\end{DoxyParamCaption})}



Set the zoom level of the photo. 

This sets the zoom level. If {\ttfamily zoom} is 1, it means no zoom. If it\textquotesingle{}s smaller than 1, it means zoom in. If it\textquotesingle{}s bigger than 1, it means zoom out. For example, {\ttfamily zoom} 1 will be 1\+:1 pixel for pixel. {\ttfamily zoom} 2 will be 2\+:1 (that is 2x2 photo pixels will display as 1 on-\/screen pixel) which is a zoom out. 4\+:1 will be 4x4 photo pixels as 1 screen pixel, and so on. The {\ttfamily zoom} parameter must be greater than 0. It is suggested to stick to powers of 2. (1, 2, 4, 8, 16, 32, etc.).


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em zoom} & The zoom level to set \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{group__Elm__Photocam__Group_gaae3133f1b16eeb16deb2798c85c4a1a4}\label{group__Elm__Photocam__Group_gaae3133f1b16eeb16deb2798c85c4a1a4}} 
\index{Photocam@{Photocam}!elm\_photocam\_zoom\_get@{elm\_photocam\_zoom\_get}}
\index{elm\_photocam\_zoom\_get@{elm\_photocam\_zoom\_get}!Photocam@{Photocam}}
\doxysubsubsection{\texorpdfstring{elm\_photocam\_zoom\_get()}{elm\_photocam\_zoom\_get()}}
{\footnotesize\ttfamily double elm\+\_\+photocam\+\_\+zoom\+\_\+get (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$}]{obj }\end{DoxyParamCaption})}



Get the zoom level of the photo. 

This returns the current zoom level of the photocam object. Note that if you set the fill mode to other than ELM\+\_\+\+PHOTOCAM\+\_\+\+ZOOM\+\_\+\+MODE\+\_\+\+MANUAL (which is the default), the zoom level may be changed at any time by the photocam object itself to account for photo size and photocam viewport size.

\begin{DoxyReturn}{Returns}
The zoom level to set 
\end{DoxyReturn}
\mbox{\Hypertarget{group__Elm__Photocam__Group_ga36acb49e545f2426115f74f4b33eb67f}\label{group__Elm__Photocam__Group_ga36acb49e545f2426115f74f4b33eb67f}} 
\index{Photocam@{Photocam}!elm\_photocam\_zoom\_mode\_set@{elm\_photocam\_zoom\_mode\_set}}
\index{elm\_photocam\_zoom\_mode\_set@{elm\_photocam\_zoom\_mode\_set}!Photocam@{Photocam}}
\doxysubsubsection{\texorpdfstring{elm\_photocam\_zoom\_mode\_set()}{elm\_photocam\_zoom\_mode\_set()}}
{\footnotesize\ttfamily void elm\+\_\+photocam\+\_\+zoom\+\_\+mode\+\_\+set (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$}]{obj,  }\item[{Elm\+\_\+\+Photocam\+\_\+\+Zoom\+\_\+\+Mode}]{mode }\end{DoxyParamCaption})}



Set the zoom mode. 

This sets the zoom mode to manual or one of several automatic levels. Manual (ELM\+\_\+\+PHOTOCAM\+\_\+\+ZOOM\+\_\+\+MODE\+\_\+\+MANUAL) means that zoom is set manually by \mbox{\hyperlink{group__Elm__Photocam__Group_ga36acb49e545f2426115f74f4b33eb67f}{elm\+\_\+photocam\+\_\+zoom\+\_\+mode\+\_\+set}} and will stay at that level until changed by code or until zoom mode is changed. This is the default mode. The Automatic modes will allow the photocam object to automatically adjust zoom mode based on properties.

ELM\+\_\+\+PHOTOCAM\+\_\+\+ZOOM\+\_\+\+MODE\+\_\+\+AUTO\+\_\+\+FIT) will adjust zoom so the photo fits EXACTLY inside the scroll frame with no pixels outside this region. ELM\+\_\+\+PHOTOCAM\+\_\+\+ZOOM\+\_\+\+MODE\+\_\+\+AUTO\+\_\+\+FILL will be similar but ensure no pixels within the frame are left unfilled.


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em mode} & The zoom mode. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{group__Elm__Photocam__Group_ga6c3776144fb48021b4ab83271cd886b9}\label{group__Elm__Photocam__Group_ga6c3776144fb48021b4ab83271cd886b9}} 
\index{Photocam@{Photocam}!elm\_photocam\_zoom\_mode\_get@{elm\_photocam\_zoom\_mode\_get}}
\index{elm\_photocam\_zoom\_mode\_get@{elm\_photocam\_zoom\_mode\_get}!Photocam@{Photocam}}
\doxysubsubsection{\texorpdfstring{elm\_photocam\_zoom\_mode\_get()}{elm\_photocam\_zoom\_mode\_get()}}
{\footnotesize\ttfamily Elm\+\_\+\+Photocam\+\_\+\+Zoom\+\_\+\+Mode elm\+\_\+photocam\+\_\+zoom\+\_\+mode\+\_\+get (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$}]{obj }\end{DoxyParamCaption})}



Get the zoom mode. 

This gets the current zoom mode of the photocam object.

\begin{DoxyReturn}{Returns}
The zoom mode. 
\end{DoxyReturn}
