\hypertarget{group__Evas__Object__Image}{}\section{Image Object Functions}
\label{group__Evas__Object__Image}\index{Image Object Functions@{Image Object Functions}}


Here are grouped together functions used to create and manipulate image objects.  


\subsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
typedef void($\ast$ \hyperlink{group__Evas__Object__Image_gadc547fb91772b80bd77dab4d0855f996}{Evas\+\_\+\+Object\+\_\+\+Image\+\_\+\+Pixels\+\_\+\+Get\+\_\+\+Cb}) (void $\ast$data, \hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object} $\ast$o)
\begin{DoxyCompactList}\small\item\em Function signature for the evas object pixels get callback function. \end{DoxyCompactList}\item 
typedef \hyperlink{group__Emile__Image__Group_gae4022652475a28417c2780ad5217c8f4}{Emile\+\_\+\+Colorspace} \hyperlink{group__Evas__Object__Image_ga86836f7ed4e141782a00de58e6ae3b72}{Evas\+\_\+\+Colorspace}
\begin{DoxyCompactList}\small\item\em Colorspaces for pixel data supported by Evas. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} \hyperlink{group__Evas__Object__Image_ga5fa34fd24e668429507715a92be1cc58}{evas\+\_\+object\+\_\+image\+\_\+extension\+\_\+can\+\_\+load\+\_\+get} (const char $\ast$file)
\begin{DoxyCompactList}\small\item\em Check if a file extension may be supported by \hyperlink{group__Evas__Object__Image}{Image Object Functions}. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} \hyperlink{group__Evas__Object__Image_gae40ab40412b1c92fc539457b78f4ccc6}{evas\+\_\+object\+\_\+image\+\_\+extension\+\_\+can\+\_\+load\+\_\+fast\+\_\+get} (const char $\ast$file)
\begin{DoxyCompactList}\small\item\em Check if a file extension may be supported by \hyperlink{group__Evas__Object__Image}{Image Object Functions}. \end{DoxyCompactList}\end{DoxyCompactItemize}
\begin{DoxyCompactItemize}
\item 
\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object} $\ast$ \hyperlink{group__Evas__Object__Image_gadd901a6b181c38dc040537b3fd76fcc6}{evas\+\_\+object\+\_\+image\+\_\+add} (\hyperlink{group__Evas__Canvas_ga5ff87cc4ce6bc43e3b640a6d37f73043}{Evas} $\ast$e)
\begin{DoxyCompactList}\small\item\em Creates a new image object on the given Evas {\ttfamily e} canvas. \end{DoxyCompactList}\item 
\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object} $\ast$ \hyperlink{group__Evas__Object__Image_ga0e8cb83d31d02bf583c75925b7cd14d7}{evas\+\_\+object\+\_\+image\+\_\+filled\+\_\+add} (\hyperlink{group__Evas__Canvas_ga5ff87cc4ce6bc43e3b640a6d37f73043}{Evas} $\ast$e)
\begin{DoxyCompactList}\small\item\em Creates a new image object that {\bfseries automatically} scales its bound image to the object\textquotesingle{}s area, on both axis. \end{DoxyCompactList}\item 
void \hyperlink{group__Evas__Object__Image_gafe8b60c78ac0d1e3f26a6a872b511368}{evas\+\_\+object\+\_\+image\+\_\+memfile\+\_\+set} (\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object} $\ast$obj, void $\ast$data, int size, char $\ast$format, char $\ast$key)
\begin{DoxyCompactList}\small\item\em Sets the data for an image from memory to be loaded. \end{DoxyCompactList}\item 
void \hyperlink{group__Evas__Object__Image_gaabe0ddc5e656d6c09f9f4dd85f981279}{evas\+\_\+object\+\_\+image\+\_\+native\+\_\+surface\+\_\+set} (\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object} $\ast$obj, \hyperlink{Evas__Common_8h_ae35ae0b7b909a9e956836b92d63b493d}{Evas\+\_\+\+Native\+\_\+\+Surface} $\ast$surf)
\begin{DoxyCompactList}\small\item\em Set the native surface of a given image of the canvas. \end{DoxyCompactList}\item 
void \hyperlink{group__Evas__Object__Image_gae314b3d41feb8c395854d8f03cb1d6b2}{evas\+\_\+object\+\_\+image\+\_\+preload} (\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object} $\ast$obj, \hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} cancel)
\begin{DoxyCompactList}\small\item\em Preload an image object\textquotesingle{}s image data in the background. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} \hyperlink{group__Evas__Object__Image_ga053a1e4ab2d79edf3fff9dc89f90b355}{evas\+\_\+object\+\_\+image\+\_\+source\+\_\+unset} (\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object} $\ast$obj)
\begin{DoxyCompactList}\small\item\em Clear the source object on a proxy image object. \end{DoxyCompactList}\item 
void \hyperlink{group__Evas__Object__Image_ga2c9de2b78628482f61547779521437f2}{evas\+\_\+object\+\_\+image\+\_\+alpha\+\_\+mask\+\_\+set} (\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object} $\ast$obj, \hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} ismask)
\begin{DoxyCompactList}\small\item\em Enable an image to be used as an alpha mask. \end{DoxyCompactList}\item 
void \hyperlink{group__Evas__Object__Image_gac27fd0ceabe5f56607b7a86d71577df1}{evas\+\_\+object\+\_\+image\+\_\+file\+\_\+set} (\hyperlink{group__Eo_ga9f3010a50b61a892d41f4ec2bda73f4c}{Eo} $\ast$obj, const char $\ast$file, const char $\ast$key)
\begin{DoxyCompactList}\small\item\em Set the source file from where an image object must fetch the real image data (it may be an Eet file, besides pure image ones). \end{DoxyCompactList}\item 
void \hyperlink{group__Evas__Object__Image_ga525cd3bf52ec9f335d0d62121adf9562}{evas\+\_\+object\+\_\+image\+\_\+file\+\_\+get} (const \hyperlink{group__Eo_ga9f3010a50b61a892d41f4ec2bda73f4c}{Eo} $\ast$obj, const char $\ast$$\ast$file, const char $\ast$$\ast$key)
\begin{DoxyCompactList}\small\item\em Retrieve the source file from where an image object is to fetch the real image data (it may be an Eet file, besides pure image ones). \end{DoxyCompactList}\item 
void \hyperlink{group__Evas__Object__Image_gaad29d123bfb439a107222f87ee4306aa}{evas\+\_\+object\+\_\+image\+\_\+mmap\+\_\+set} (\hyperlink{group__Eo_ga9f3010a50b61a892d41f4ec2bda73f4c}{Eo} $\ast$obj, const \hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File} $\ast$f, const char $\ast$key)
\begin{DoxyCompactList}\small\item\em Set the source mmaped file from where an image object must fetch the real image data (it must be an Eina\+\_\+\+File). \end{DoxyCompactList}\item 
void \hyperlink{group__Evas__Object__Image_ga4dac4796c8f9375e4c10518722ce4657}{evas\+\_\+object\+\_\+image\+\_\+mmap\+\_\+get} (const \hyperlink{group__Eo_ga9f3010a50b61a892d41f4ec2bda73f4c}{Eo} $\ast$obj, const \hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File} $\ast$$\ast$f, const char $\ast$$\ast$key)
\begin{DoxyCompactList}\small\item\em Get the source mmaped file from where an image object must fetch the real image data (it must be an Eina\+\_\+\+File). \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} \hyperlink{group__Evas__Object__Image_ga8bd6201d1b5c5f0e65600b491c6557e4}{evas\+\_\+object\+\_\+image\+\_\+save} (const \hyperlink{group__Eo_ga9f3010a50b61a892d41f4ec2bda73f4c}{Eo} $\ast$obj, const char $\ast$file, const char $\ast$key, const char $\ast$flags)
\begin{DoxyCompactList}\small\item\em Save the given image object\textquotesingle{}s contents to an (image) file. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} \hyperlink{group__Evas__Object__Image_ga53e93ec0f368db0c6c780e01cbbc9249}{evas\+\_\+object\+\_\+image\+\_\+animated\+\_\+get} (const \hyperlink{group__Eo_ga9f3010a50b61a892d41f4ec2bda73f4c}{Eo} $\ast$obj)
\begin{DoxyCompactList}\small\item\em Check if an image object can be animated (have multiple frames) \end{DoxyCompactList}\item 
void \hyperlink{group__Evas__Object__Image_ga46518b9f2ff1fc849db13b3ebe366026}{evas\+\_\+object\+\_\+image\+\_\+load\+\_\+size\+\_\+set} (\hyperlink{group__Eo_ga9f3010a50b61a892d41f4ec2bda73f4c}{Eo} $\ast$obj, int w, int h)
\begin{DoxyCompactList}\small\item\em Set the load size of a given image object\textquotesingle{}s source image. \end{DoxyCompactList}\item 
void \hyperlink{group__Evas__Object__Image_gaffdea29e7a6cec374e6aa30bbb4bcca7}{evas\+\_\+object\+\_\+image\+\_\+load\+\_\+size\+\_\+get} (const \hyperlink{group__Eo_ga9f3010a50b61a892d41f4ec2bda73f4c}{Eo} $\ast$obj, int $\ast$w, int $\ast$h)
\begin{DoxyCompactList}\small\item\em Get the load size of a given image object\textquotesingle{}s source image. \end{DoxyCompactList}\item 
void \hyperlink{group__Evas__Object__Image_gaf79e692448eb80c39da1fd60f8db5dda}{evas\+\_\+object\+\_\+image\+\_\+smooth\+\_\+scale\+\_\+set} (\hyperlink{group__Eo_ga9f3010a50b61a892d41f4ec2bda73f4c}{Eo} $\ast$obj, \hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} smooth\+\_\+scale)
\begin{DoxyCompactList}\small\item\em Sets whether to use high-\/quality image scaling algorithm on the given image object. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} \hyperlink{group__Evas__Object__Image_gac0177597371f246ac377782fcc59c5be}{evas\+\_\+object\+\_\+image\+\_\+smooth\+\_\+scale\+\_\+get} (const \hyperlink{group__Eo_ga9f3010a50b61a892d41f4ec2bda73f4c}{Eo} $\ast$obj)
\begin{DoxyCompactList}\small\item\em Retrieves whether the given image object is using high-\/quality image scaling algorithm. \end{DoxyCompactList}\item 
void \hyperlink{group__Evas__Object__Image_ga36710dbfad2dfc10ea17f4897c23f367}{evas\+\_\+object\+\_\+image\+\_\+fill\+\_\+spread\+\_\+set} (\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object} $\ast$obj, Evas\+\_\+\+Fill\+\_\+\+Spread spread)
\begin{DoxyCompactList}\small\item\em Sets the tiling mode for the given evas image object\textquotesingle{}s fill. \end{DoxyCompactList}\item 
Evas\+\_\+\+Fill\+\_\+\+Spread \hyperlink{group__Evas__Object__Image_ga66643c896d92deed0e4cf648cf813822}{evas\+\_\+object\+\_\+image\+\_\+fill\+\_\+spread\+\_\+get} (const \hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object} $\ast$obj)
\begin{DoxyCompactList}\small\item\em Retrieves the spread (tiling mode) for the given image object\textquotesingle{}s fill. \end{DoxyCompactList}\item 
void \hyperlink{group__Evas__Object__Image_gaf9a32e36b3446f597baf95aab37e33da}{evas\+\_\+object\+\_\+image\+\_\+fill\+\_\+set} (\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object} $\ast$obj, \hyperlink{group__Evas_ga2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord} x, \hyperlink{group__Evas_ga2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord} y, \hyperlink{group__Evas_ga2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord} w, \hyperlink{group__Evas_ga2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord} h)
\begin{DoxyCompactList}\small\item\em Set how to fill an image object\textquotesingle{}s drawing rectangle given the (real) image bound to it. \end{DoxyCompactList}\item 
void \hyperlink{group__Evas__Object__Image_ga12091147e3567d1714d1a6986c48f179}{evas\+\_\+object\+\_\+image\+\_\+fill\+\_\+get} (const \hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object} $\ast$obj, \hyperlink{group__Evas_ga2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord} $\ast$x, \hyperlink{group__Evas_ga2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord} $\ast$y, \hyperlink{group__Evas_ga2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord} $\ast$w, \hyperlink{group__Evas_ga2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord} $\ast$h)
\begin{DoxyCompactList}\small\item\em Retrieve how an image object is to fill its drawing rectangle, given the (real) image bound to it. \end{DoxyCompactList}\item 
void \hyperlink{group__Evas__Object__Image_ga369c3638028094b1d66bd482778eb6b2}{evas\+\_\+object\+\_\+image\+\_\+size\+\_\+set} (\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object} $\ast$obj, int w, int h)
\begin{DoxyCompactList}\small\item\em Sets the size of the given image object. \end{DoxyCompactList}\item 
void \hyperlink{group__Evas__Object__Image_ga6307d5c3560528d7525a6c2ed16360ed}{evas\+\_\+object\+\_\+image\+\_\+size\+\_\+get} (const \hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object} $\ast$obj, int $\ast$w, int $\ast$h)
\begin{DoxyCompactList}\small\item\em Retrieves the size of the given image object. \end{DoxyCompactList}\item 
void $\ast$ \hyperlink{group__Evas__Object__Image_ga2d7ac31db43f0f2f6ba80e317abb7144}{evas\+\_\+object\+\_\+image\+\_\+data\+\_\+convert} (\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object} $\ast$obj, \hyperlink{group__Evas__Object__Image_ga86836f7ed4e141782a00de58e6ae3b72}{Evas\+\_\+\+Colorspace} to\+\_\+cspace) \hyperlink{group__Eina__Types__Group_gad5b2116495471db12a34bab9a34edfaa}{E\+I\+N\+A\+\_\+\+D\+E\+P\+R\+E\+C\+A\+T\+ED}
\item 
\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} \hyperlink{group__Evas__Object__Image_gac11c7b56b285c96b7a77a56fc25f3f4c}{evas\+\_\+object\+\_\+image\+\_\+pixels\+\_\+import} (\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object} $\ast$obj, \hyperlink{Evas__Common_8h_abb01076af16fbb50a837b1893b776783}{Evas\+\_\+\+Pixel\+\_\+\+Import\+\_\+\+Source} $\ast$pixels) \hyperlink{group__Eina__Types__Group_gad5b2116495471db12a34bab9a34edfaa}{E\+I\+N\+A\+\_\+\+D\+E\+P\+R\+E\+C\+A\+T\+ED}
\item 
void \hyperlink{group__Evas__Object__Image_ga8f50680090ece901a20d62fa67959c52}{evas\+\_\+object\+\_\+image\+\_\+reload} (\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object} $\ast$obj) \hyperlink{group__Eina__Types__Group_gad5b2116495471db12a34bab9a34edfaa}{E\+I\+N\+A\+\_\+\+D\+E\+P\+R\+E\+C\+A\+T\+ED}
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Here are grouped together functions used to create and manipulate image objects. 

They are available to whichever occasion one needs complex imagery on a G\+UI that could not be achieved by the other Evas\textquotesingle{} primitive object types, or to make image manipulations.

Evas will support whichever image file types it was compiled with support to (its image loaders) -- check your software packager for that information and see \hyperlink{group__Evas__Object__Image_ga5fa34fd24e668429507715a92be1cc58}{evas\+\_\+object\+\_\+image\+\_\+extension\+\_\+can\+\_\+load\+\_\+get()}.\hypertarget{group__Evas__Object__Image_Evas_Object_Image_Basics}{}\subsection{Image object basics}\label{group__Evas__Object__Image_Evas_Object_Image_Basics}
The most common use of image objects -- to display an image on the canvas -- is achieved by a common function triplet\+: 
\begin{DoxyCode}
img = \hyperlink{group__Evas__Object__Image_gadd901a6b181c38dc040537b3fd76fcc6}{evas\_object\_image\_add}(canvas);
\hyperlink{group__Evas__Object__Image_gac27fd0ceabe5f56607b7a86d71577df1}{evas\_object\_image\_file\_set}(img, \textcolor{stringliteral}{"path/to/img"}, NULL);
\hyperlink{group__Evas__Object__Image_gaf9a32e36b3446f597baf95aab37e33da}{evas\_object\_image\_fill\_set}(img, 0, 0, w, h);
\end{DoxyCode}
 The first function, naturally, is creating the image object. Then, one must set an source file on it, so that it knows where to fetch image data from. Next, one must set {\bfseries how to fill the image object\textquotesingle{}s area} with that given pixel data. One could use just a sub-\/region of the original image or even have it tiled repeatedly on the image object. For the common case of having the whole source image to be displayed on the image object, stretched to the destination\textquotesingle{}s size, there\textquotesingle{}s also a function helper, to be used instead of \hyperlink{group__Evas__Object__Image_gaf9a32e36b3446f597baf95aab37e33da}{evas\+\_\+object\+\_\+image\+\_\+fill\+\_\+set()}\+: 
\begin{DoxyCode}
evas\_object\_image\_filled\_set(img, \hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\_TRUE});
\end{DoxyCode}
 See those functions\textquotesingle{} documentation for more details.\hypertarget{group__Evas__Object__Image_Evas_Object_Image_Scale}{}\subsection{Scale and resizing}\label{group__Evas__Object__Image_Evas_Object_Image_Scale}
Resizing of image objects will scale their respective source images to their areas, if they are set to \char`\"{}fill\char`\"{} the object\textquotesingle{}s area (evas\+\_\+object\+\_\+image\+\_\+filled\+\_\+set()). If the user wants any control on the aspect ratio of an image for different sizes, he/she has to take care of that themselves. There are functions to make images to get loaded scaled (up or down) in memory, already, if the user is going to use them at pre-\/determined sizes and wants to save computations.

Evas has even a scale cache, which will take care of caching scaled versions of images with more often usage/hits. Finally, one can have images being rescaled {\bfseries smoothly} by Evas (more computationally expensive) or not.\hypertarget{group__Evas__Object__Image_Evas_Object_Image_Performance}{}\subsection{Performance hints}\label{group__Evas__Object__Image_Evas_Object_Image_Performance}
When dealing with image objects, there are some tricks to boost the performance of your application, if it does intense image loading and/or manipulations, as in animations on a UI.\hypertarget{group__Evas__Object__Image_Evas_Object_Image_Load}{}\subsubsection{Load hints}\label{group__Evas__Object__Image_Evas_Object_Image_Load}
In image viewer applications, for example, the user will be looking at a given image, at full size, and will desire that the navigation to the adjacent images on his/her album be fluid and fast. Thus, while displaying a given image, the program can be on the background loading the next and previous images already, so that displaying them on the sequence is just a matter of repainting the screen (and not decoding image data).

Evas addresses this issue with {\bfseries image pre-\/loading}. The code for the situation above would be something like the following\+: 
\begin{DoxyCode}
prev = \hyperlink{group__Evas__Object__Image_ga0e8cb83d31d02bf583c75925b7cd14d7}{evas\_object\_image\_filled\_add}(canvas);
\hyperlink{group__Evas__Object__Image_gac27fd0ceabe5f56607b7a86d71577df1}{evas\_object\_image\_file\_set}(prev, \textcolor{stringliteral}{"/path/to/prev"}, NULL);
\hyperlink{group__Evas__Object__Image_gae314b3d41feb8c395854d8f03cb1d6b2}{evas\_object\_image\_preload}(prev, \hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\_TRUE});

next = \hyperlink{group__Evas__Object__Image_ga0e8cb83d31d02bf583c75925b7cd14d7}{evas\_object\_image\_filled\_add}(canvas);
\hyperlink{group__Evas__Object__Image_gac27fd0ceabe5f56607b7a86d71577df1}{evas\_object\_image\_file\_set}(next, \textcolor{stringliteral}{"/path/to/next"}, NULL);
\hyperlink{group__Evas__Object__Image_gae314b3d41feb8c395854d8f03cb1d6b2}{evas\_object\_image\_preload}(next, \hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\_TRUE});
\end{DoxyCode}


If you\textquotesingle{}re loading images which are too big, consider setting previously it\textquotesingle{}s loading size to something smaller, in case you won\textquotesingle{}t expose them in real size. It may speed up the loading considerably\+: 
\begin{DoxyCode}
\textcolor{comment}{//to load a scaled down version of the image in memory, if that's}
\textcolor{comment}{//the size you'll be displaying it anyway}
evas\_object\_image\_load\_scale\_down\_set(img, zoom);

\textcolor{comment}{//optional: if you know you'll be showing a sub-set of the image's}
\textcolor{comment}{//pixels, you can avoid loading the complementary data}
evas\_object\_image\_load\_region\_set(img, x, y, w, h);
\end{DoxyCode}
 Refer to Elementary\textquotesingle{}s Photocam widget for a high level (smart) object which does lots of loading speed-\/ups for you.\hypertarget{group__Evas__Object__Image_Evas_Object_Image_Animation}{}\subsubsection{Animation hints}\label{group__Evas__Object__Image_Evas_Object_Image_Animation}
If you want to animate image objects on a UI (what you\textquotesingle{}d get by concomitant usage of other libraries, like Ecore and Edje), there are also some tips on how to boost the performance of your application. If the animation involves resizing of an image (thus, re-\/scaling), you\textquotesingle{}d better turn off smooth scaling on it {\bfseries during} the animation, turning it back on afterwards, for less computations. Also, in this case you\textquotesingle{}d better flag the image object in question not to cache scaled versions of it\+: 
\begin{DoxyCode}
evas\_object\_image\_scale\_hint\_set(wd->img, EVAS\_IMAGE\_SCALE\_HINT\_DYNAMIC);

\textcolor{comment}{// resizing takes place in between}

evas\_object\_image\_scale\_hint\_set(wd->img, EVAS\_IMAGE\_SCALE\_HINT\_STATIC);
\end{DoxyCode}


Finally, movement of opaque images through the canvas is less expensive than of translucid ones, because of blending computations.\hypertarget{group__Evas__Object__Image_Evas_Object_Image_Borders}{}\subsection{Borders}\label{group__Evas__Object__Image_Evas_Object_Image_Borders}
Evas provides facilities for one to specify an image\textquotesingle{}s region to be treated specially -- as \char`\"{}borders\char`\"{}. This will make those regions be treated specially on resizing scales, by keeping their aspect. This makes setting frames around other objects on U\+Is easy. See the following figures for a visual explanation\+:~\newline
  
\begin{DoxyImageNoCaption}
  \mbox{\includegraphics[width=\textwidth]{image-borders}}
\end{DoxyImageNoCaption}
   
\begin{DoxyImageNoCaption}
  \mbox{\includegraphics[width=\textwidth]{border-effect}}
\end{DoxyImageNoCaption}
\hypertarget{group__Evas__Object__Image_Evas_Object_Image_Manipulation}{}\subsection{Manipulating pixels}\label{group__Evas__Object__Image_Evas_Object_Image_Manipulation}
Evas image objects can be used to manipulate raw pixels in many ways. The meaning of the data in the pixel arrays will depend on the image\textquotesingle{}s color space, be warned (see next section). You can set your own data as an image\textquotesingle{}s pixel data, fetch an image\textquotesingle{}s pixel data for saving/altering, convert images between different color spaces and even advanced operations like setting a native surface as image objects\textquotesingle{} data.\hypertarget{group__Evas__Object__Image_Evas_Object_Image_Color_Spaces}{}\subsection{Color spaces}\label{group__Evas__Object__Image_Evas_Object_Image_Color_Spaces}
Image objects may return or accept \char`\"{}image data\char`\"{} in multiple formats. This is based on the color space of an object. Here is a rundown on formats\+:


\begin{DoxyItemize}
\item \#\+E\+V\+A\+S\+\_\+\+C\+O\+L\+O\+R\+S\+P\+A\+C\+E\+\_\+\+A\+R\+G\+B8888\+: This pixel format is a linear block of pixels, starting at the top-\/left row by row until the bottom right of the image or pixel region. All pixels are 32-\/bit unsigned int\textquotesingle{}s with the high-\/byte being alpha and the low byte being blue in the format A\+R\+GB. Alpha may or may not be used by evas depending on the alpha flag of the image, but if not used, should be set to 0xff anyway. ~\newline
~\newline
 This colorspace uses premultiplied alpha. That means that R, G and B cannot exceed A in value. The conversion from non-\/premultiplied colorspace is\+: ~\newline
~\newline
 R = (r $\ast$ a) / 255; G = (g $\ast$ a) / 255; B = (b $\ast$ a) / 255; ~\newline
~\newline
 So 50\% transparent blue will be\+: 0x80000080. This will not be \char`\"{}dark\char`\"{} -\/ just 50\% transparent. Values are 0 == black, 255 == solid or full red, green or blue.
\end{DoxyItemize}
\begin{DoxyItemize}
\item \#\+E\+V\+A\+S\+\_\+\+C\+O\+L\+O\+R\+S\+P\+A\+C\+E\+\_\+\+Y\+C\+B\+C\+R422\+P601\+\_\+\+PL\+: This is a pointer-\/list indirected set of Y\+UV (Y\+Cb\+Cr) pixel data. This means that the data returned or set is not actual pixel data, but pointers TO lines of pixel data. The list of pointers will first be N rows of pointers to the Y plane -\/ pointing to the first pixel at the start of each row in the Y plane. N is the height of the image data in pixels. Each pixel in the Y, U and V planes is 1 byte exactly, packed. The next N / 2 pointers will point to rows in the U plane, and the next N / 2 pointers will point to the V plane rows. U and V planes are half the horizontal and vertical resolution of the Y plane. ~\newline
~\newline
 Row order is top to bottom and row pixels are stored left to right. ~\newline
~\newline
 There is a limitation that these images M\+U\+ST be a multiple of 2 pixels in size horizontally or vertically. This is due to the U and V planes being half resolution. Also note that this assumes the itu601 Y\+UV colorspace specification. This is defined for standard television and mpeg streams. H\+D\+TV may use the itu709 specification. ~\newline
~\newline
 Values are 0 to 255, indicating full or no signal in that plane respectively.
\end{DoxyItemize}
\begin{DoxyItemize}
\item \#\+E\+V\+A\+S\+\_\+\+C\+O\+L\+O\+R\+S\+P\+A\+C\+E\+\_\+\+Y\+C\+B\+C\+R422\+P709\+\_\+\+PL\+: Not implemented yet.
\end{DoxyItemize}
\begin{DoxyItemize}
\item \#\+E\+V\+A\+S\+\_\+\+C\+O\+L\+O\+R\+S\+P\+A\+C\+E\+\_\+\+R\+G\+B565\+\_\+\+A5P\+: In the process of being implemented in 1 engine only. This may change. ~\newline
~\newline
 This is a pointer to image data for 16-\/bit half-\/word pixel data in 16bpp R\+GB 565 format (5 bits red, 6 bits green, 5 bits blue), with the high-\/byte containing red and the low byte containing blue, per pixel. This data is packed row by row from the top-\/left to the bottom right. ~\newline
~\newline
 If the image has an alpha channel enabled there will be an extra alpha plane after the color pixel plane. If not, then this data will not exist and should not be accessed in any way. This plane is a set of pixels with 1 byte per pixel defining the alpha values of all pixels in the image from the top-\/left to the bottom right of the image, row by row. Even though the values of the alpha pixels can be 0 to 255, only values 0 through to 32 are used, 32 being solid and 0 being transparent. ~\newline
~\newline
 R\+GB values can be 0 to 31 for red and blue and 0 to 63 for green, with 0 being black and 31 or 63 being full red, green or blue respectively. This colorspace is also pre-\/multiplied like E\+V\+A\+S\+\_\+\+C\+O\+L\+O\+R\+S\+P\+A\+C\+E\+\_\+\+A\+R\+G\+B8888 so\+: ~\newline
~\newline
 R = (r $\ast$ a) / 32; G = (g $\ast$ a) / 32; B = (b $\ast$ a) / 32;
\end{DoxyItemize}
\begin{DoxyItemize}
\item \#\+E\+V\+A\+S\+\_\+\+C\+O\+L\+O\+R\+S\+P\+A\+C\+E\+\_\+\+G\+R\+Y8\+: The image is just a alpha mask (8 bit\textquotesingle{}s per pixel). This is used for alpha masking.
\end{DoxyItemize}

\begin{DoxyWarning}{Warning}
We don\textquotesingle{}t guarantee any proper results if you create a Image object without setting the evas engine.
\end{DoxyWarning}
Some examples on this group of functions can be found \hyperlink{Example_Evas_Images}{here}. 

\subsection{Typedef Documentation}
\mbox{\Hypertarget{group__Evas__Object__Image_gadc547fb91772b80bd77dab4d0855f996}\label{group__Evas__Object__Image_gadc547fb91772b80bd77dab4d0855f996}} 
\index{Image Object Functions@{Image Object Functions}!Evas\+\_\+\+Object\+\_\+\+Image\+\_\+\+Pixels\+\_\+\+Get\+\_\+\+Cb@{Evas\+\_\+\+Object\+\_\+\+Image\+\_\+\+Pixels\+\_\+\+Get\+\_\+\+Cb}}
\index{Evas\+\_\+\+Object\+\_\+\+Image\+\_\+\+Pixels\+\_\+\+Get\+\_\+\+Cb@{Evas\+\_\+\+Object\+\_\+\+Image\+\_\+\+Pixels\+\_\+\+Get\+\_\+\+Cb}!Image Object Functions@{Image Object Functions}}
\subsubsection{\texorpdfstring{Evas\+\_\+\+Object\+\_\+\+Image\+\_\+\+Pixels\+\_\+\+Get\+\_\+\+Cb}{Evas\_Object\_Image\_Pixels\_Get\_Cb}}
{\footnotesize\ttfamily typedef void($\ast$ Evas\+\_\+\+Object\+\_\+\+Image\+\_\+\+Pixels\+\_\+\+Get\+\_\+\+Cb) (void $\ast$data, \hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object} $\ast$o)}



Function signature for the evas object pixels get callback function. 

\begin{DoxySeeAlso}{See also}
evas\+\_\+object\+\_\+image\+\_\+pixels\+\_\+get()
\end{DoxySeeAlso}
By {\itshape data} it will be passed the private data. By {\itshape o} it will be passed the Evas\+\_\+\+Object image on which the pixels are requested. \mbox{\Hypertarget{group__Evas__Object__Image_ga86836f7ed4e141782a00de58e6ae3b72}\label{group__Evas__Object__Image_ga86836f7ed4e141782a00de58e6ae3b72}} 
\index{Image Object Functions@{Image Object Functions}!Evas\+\_\+\+Colorspace@{Evas\+\_\+\+Colorspace}}
\index{Evas\+\_\+\+Colorspace@{Evas\+\_\+\+Colorspace}!Image Object Functions@{Image Object Functions}}
\subsubsection{\texorpdfstring{Evas\+\_\+\+Colorspace}{Evas\_Colorspace}}
{\footnotesize\ttfamily typedef \hyperlink{group__Emile__Image__Group_gae4022652475a28417c2780ad5217c8f4}{Emile\+\_\+\+Colorspace} \hyperlink{group__Evas__Object__Image_ga86836f7ed4e141782a00de58e6ae3b72}{Evas\+\_\+\+Colorspace}}



Colorspaces for pixel data supported by Evas. 

Colorspaces for pixel data supported by Evas 

\subsection{Function Documentation}
\mbox{\Hypertarget{group__Evas__Object__Image_ga5fa34fd24e668429507715a92be1cc58}\label{group__Evas__Object__Image_ga5fa34fd24e668429507715a92be1cc58}} 
\index{Image Object Functions@{Image Object Functions}!evas\+\_\+object\+\_\+image\+\_\+extension\+\_\+can\+\_\+load\+\_\+get@{evas\+\_\+object\+\_\+image\+\_\+extension\+\_\+can\+\_\+load\+\_\+get}}
\index{evas\+\_\+object\+\_\+image\+\_\+extension\+\_\+can\+\_\+load\+\_\+get@{evas\+\_\+object\+\_\+image\+\_\+extension\+\_\+can\+\_\+load\+\_\+get}!Image Object Functions@{Image Object Functions}}
\subsubsection{\texorpdfstring{evas\+\_\+object\+\_\+image\+\_\+extension\+\_\+can\+\_\+load\+\_\+get()}{evas\_object\_image\_extension\_can\_load\_get()}}
{\footnotesize\ttfamily \hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} evas\+\_\+object\+\_\+image\+\_\+extension\+\_\+can\+\_\+load\+\_\+get (\begin{DoxyParamCaption}\item[{const char $\ast$}]{file }\end{DoxyParamCaption})}



Check if a file extension may be supported by \hyperlink{group__Evas__Object__Image}{Image Object Functions}. 


\begin{DoxyParams}{Parameters}
{\em file} & The file to check \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
{\ttfamily E\+I\+N\+A\+\_\+\+T\+R\+UE} if we may be able to open it, {\ttfamily E\+I\+N\+A\+\_\+\+F\+A\+L\+SE} if it\textquotesingle{}s unlikely. 
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\+1
\end{DoxySince}
If file is a Eina\+\_\+\+Stringshare, use directly \hyperlink{group__Evas__Object__Image_gae40ab40412b1c92fc539457b78f4ccc6}{evas\+\_\+object\+\_\+image\+\_\+extension\+\_\+can\+\_\+load\+\_\+fast\+\_\+get}.

This functions is threadsafe. 

References eina\+\_\+stringshare\+\_\+add(), and eina\+\_\+stringshare\+\_\+del().

\mbox{\Hypertarget{group__Evas__Object__Image_gae40ab40412b1c92fc539457b78f4ccc6}\label{group__Evas__Object__Image_gae40ab40412b1c92fc539457b78f4ccc6}} 
\index{Image Object Functions@{Image Object Functions}!evas\+\_\+object\+\_\+image\+\_\+extension\+\_\+can\+\_\+load\+\_\+fast\+\_\+get@{evas\+\_\+object\+\_\+image\+\_\+extension\+\_\+can\+\_\+load\+\_\+fast\+\_\+get}}
\index{evas\+\_\+object\+\_\+image\+\_\+extension\+\_\+can\+\_\+load\+\_\+fast\+\_\+get@{evas\+\_\+object\+\_\+image\+\_\+extension\+\_\+can\+\_\+load\+\_\+fast\+\_\+get}!Image Object Functions@{Image Object Functions}}
\subsubsection{\texorpdfstring{evas\+\_\+object\+\_\+image\+\_\+extension\+\_\+can\+\_\+load\+\_\+fast\+\_\+get()}{evas\_object\_image\_extension\_can\_load\_fast\_get()}}
{\footnotesize\ttfamily \hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} evas\+\_\+object\+\_\+image\+\_\+extension\+\_\+can\+\_\+load\+\_\+fast\+\_\+get (\begin{DoxyParamCaption}\item[{const char $\ast$}]{file }\end{DoxyParamCaption})}



Check if a file extension may be supported by \hyperlink{group__Evas__Object__Image}{Image Object Functions}. 


\begin{DoxyParams}{Parameters}
{\em file} & The file to check, it should be an Eina\+\_\+\+Stringshare. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
{\ttfamily E\+I\+N\+A\+\_\+\+T\+R\+UE} if we may be able to open it, {\ttfamily E\+I\+N\+A\+\_\+\+F\+A\+L\+SE} if it\textquotesingle{}s unlikely. 
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\+1
\end{DoxySince}
This functions is threadsafe. 

References E\+I\+N\+A\+\_\+\+U\+N\+U\+S\+ED, E\+V\+A\+S\+\_\+\+C\+A\+L\+L\+B\+A\+C\+K\+\_\+\+C\+A\+N\+V\+A\+S\+\_\+\+F\+O\+C\+U\+S\+\_\+\+IN, E\+V\+A\+S\+\_\+\+C\+A\+L\+L\+B\+A\+C\+K\+\_\+\+C\+A\+N\+V\+A\+S\+\_\+\+F\+O\+C\+U\+S\+\_\+\+O\+UT, and evas\+\_\+free().

\mbox{\Hypertarget{group__Evas__Object__Image_gadd901a6b181c38dc040537b3fd76fcc6}\label{group__Evas__Object__Image_gadd901a6b181c38dc040537b3fd76fcc6}} 
\index{Image Object Functions@{Image Object Functions}!evas\+\_\+object\+\_\+image\+\_\+add@{evas\+\_\+object\+\_\+image\+\_\+add}}
\index{evas\+\_\+object\+\_\+image\+\_\+add@{evas\+\_\+object\+\_\+image\+\_\+add}!Image Object Functions@{Image Object Functions}}
\subsubsection{\texorpdfstring{evas\+\_\+object\+\_\+image\+\_\+add()}{evas\_object\_image\_add()}}
{\footnotesize\ttfamily \hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}$\ast$ evas\+\_\+object\+\_\+image\+\_\+add (\begin{DoxyParamCaption}\item[{\hyperlink{group__Evas__Canvas_ga5ff87cc4ce6bc43e3b640a6d37f73043}{Evas} $\ast$}]{e }\end{DoxyParamCaption})}



Creates a new image object on the given Evas {\ttfamily e} canvas. 


\begin{DoxyParams}{Parameters}
{\em e} & The given canvas. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The created image object handle.
\end{DoxyReturn}
\begin{DoxyNote}{Note}
If you intend to {\bfseries display} an image somehow in a G\+UI, besides binding it to a real image file/source (with \hyperlink{group__Evas__Object__Image_gac27fd0ceabe5f56607b7a86d71577df1}{evas\+\_\+object\+\_\+image\+\_\+file\+\_\+set()}, for example), you\textquotesingle{}ll have to tell this image object how to fill its space with the pixels it can get from the source. See \hyperlink{group__Evas__Object__Image_ga0e8cb83d31d02bf583c75925b7cd14d7}{evas\+\_\+object\+\_\+image\+\_\+filled\+\_\+add()}, for a helper on the common case of scaling up an image source to the whole area of the image object.
\end{DoxyNote}
\begin{DoxySeeAlso}{See also}
\hyperlink{group__Evas__Object__Image_gaf9a32e36b3446f597baf95aab37e33da}{evas\+\_\+object\+\_\+image\+\_\+fill\+\_\+set()}
\end{DoxySeeAlso}
Example\+: 
\begin{DoxyCode}
img = \hyperlink{group__Evas__Object__Image_gadd901a6b181c38dc040537b3fd76fcc6}{evas\_object\_image\_add}(canvas);
\hyperlink{group__Evas__Object__Image_gac27fd0ceabe5f56607b7a86d71577df1}{evas\_object\_image\_file\_set}(img, \textcolor{stringliteral}{"/path/to/img"}, NULL);
\end{DoxyCode}
 

References eo\+\_\+data\+\_\+scope\+\_\+get().



Referenced by ecore\+\_\+evas\+\_\+cursor\+\_\+set(), ecore\+\_\+evas\+\_\+ews\+\_\+new(), ethumb\+\_\+dup(), and evas\+\_\+object\+\_\+image\+\_\+filled\+\_\+add().

\mbox{\Hypertarget{group__Evas__Object__Image_ga0e8cb83d31d02bf583c75925b7cd14d7}\label{group__Evas__Object__Image_ga0e8cb83d31d02bf583c75925b7cd14d7}} 
\index{Image Object Functions@{Image Object Functions}!evas\+\_\+object\+\_\+image\+\_\+filled\+\_\+add@{evas\+\_\+object\+\_\+image\+\_\+filled\+\_\+add}}
\index{evas\+\_\+object\+\_\+image\+\_\+filled\+\_\+add@{evas\+\_\+object\+\_\+image\+\_\+filled\+\_\+add}!Image Object Functions@{Image Object Functions}}
\subsubsection{\texorpdfstring{evas\+\_\+object\+\_\+image\+\_\+filled\+\_\+add()}{evas\_object\_image\_filled\_add()}}
{\footnotesize\ttfamily \hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}$\ast$ evas\+\_\+object\+\_\+image\+\_\+filled\+\_\+add (\begin{DoxyParamCaption}\item[{\hyperlink{group__Evas__Canvas_ga5ff87cc4ce6bc43e3b640a6d37f73043}{Evas} $\ast$}]{e }\end{DoxyParamCaption})}



Creates a new image object that {\bfseries automatically} scales its bound image to the object\textquotesingle{}s area, on both axis. 


\begin{DoxyParams}{Parameters}
{\em e} & The given canvas. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The created image object handle.
\end{DoxyReturn}
This is a helper function around \hyperlink{group__Evas__Object__Image_gadd901a6b181c38dc040537b3fd76fcc6}{evas\+\_\+object\+\_\+image\+\_\+add()} and evas\+\_\+object\+\_\+image\+\_\+filled\+\_\+set(). It has the same effect of applying those functions in sequence, which is a very common use case.

\begin{DoxyNote}{Note}
Whenever this object gets resized, the bound image will be rescaled, too.
\end{DoxyNote}
\begin{DoxySeeAlso}{See also}
\hyperlink{group__Evas__Object__Image_gadd901a6b181c38dc040537b3fd76fcc6}{evas\+\_\+object\+\_\+image\+\_\+add()} 

evas\+\_\+object\+\_\+image\+\_\+filled\+\_\+set() 

\hyperlink{group__Evas__Object__Image_gaf9a32e36b3446f597baf95aab37e33da}{evas\+\_\+object\+\_\+image\+\_\+fill\+\_\+set()} 
\end{DoxySeeAlso}
\begin{Desc}
\item[Examples\+: ]\par
\hyperlink{ecore_evas_buffer_example_02_8c-example}{ecore\+\_\+evas\+\_\+buffer\+\_\+example\+\_\+02.\+c}, \hyperlink{edje-basic_8c-example}{edje-\/basic.\+c}, \hyperlink{edje-signals-messages_8c-example}{edje-\/signals-\/messages.\+c}, \hyperlink{ephysics_logo_8c-example}{ephysics\+\_\+logo.\+c}, \hyperlink{evas-aspect-hints_8c-example}{evas-\/aspect-\/hints.\+c}, \hyperlink{evas-box_8c-example}{evas-\/box.\+c}, \hyperlink{evas-events_8c-example}{evas-\/events.\+c}, \hyperlink{evas-hints_8c-example}{evas-\/hints.\+c}, \hyperlink{evas-images_8c-example}{evas-\/images.\+c}, \hyperlink{evas-images2_8c-example}{evas-\/images2.\+c}, \hyperlink{evas-map-utils_8c-example}{evas-\/map-\/utils.\+c}, \hyperlink{evas-object-manipulation_8c-example}{evas-\/object-\/manipulation.\+c}, \hyperlink{evas-smart-interface_8c-example}{evas-\/smart-\/interface.\+c}, \hyperlink{evas-smart-object_8c-example}{evas-\/smart-\/object.\+c}, and \hyperlink{evas-text_8c-example}{evas-\/text.\+c}.\end{Desc}


References evas\+\_\+object\+\_\+image\+\_\+add().

\mbox{\Hypertarget{group__Evas__Object__Image_gafe8b60c78ac0d1e3f26a6a872b511368}\label{group__Evas__Object__Image_gafe8b60c78ac0d1e3f26a6a872b511368}} 
\index{Image Object Functions@{Image Object Functions}!evas\+\_\+object\+\_\+image\+\_\+memfile\+\_\+set@{evas\+\_\+object\+\_\+image\+\_\+memfile\+\_\+set}}
\index{evas\+\_\+object\+\_\+image\+\_\+memfile\+\_\+set@{evas\+\_\+object\+\_\+image\+\_\+memfile\+\_\+set}!Image Object Functions@{Image Object Functions}}
\subsubsection{\texorpdfstring{evas\+\_\+object\+\_\+image\+\_\+memfile\+\_\+set()}{evas\_object\_image\_memfile\_set()}}
{\footnotesize\ttfamily void evas\+\_\+object\+\_\+image\+\_\+memfile\+\_\+set (\begin{DoxyParamCaption}\item[{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object} $\ast$}]{obj,  }\item[{void $\ast$}]{data,  }\item[{int}]{size,  }\item[{char $\ast$}]{format,  }\item[{char $\ast$}]{key }\end{DoxyParamCaption})}



Sets the data for an image from memory to be loaded. 

This is the same as \hyperlink{group__Evas__Object__Image_gac27fd0ceabe5f56607b7a86d71577df1}{evas\+\_\+object\+\_\+image\+\_\+file\+\_\+set()} but the file to be loaded may exist at an address in memory (the data for the file, not the filename itself). The {\ttfamily data} at the address is copied and stored for future use, so no {\ttfamily data} needs to be kept after this call is made. It will be managed and freed for you when no longer needed. The {\ttfamily size} is limited to 2 gigabytes in size, and must be greater than 0. A {\ttfamily N\+U\+LL} {\ttfamily data} pointer is also invalid. Set the filename to {\ttfamily N\+U\+LL} to reset to empty state and have the image file data freed from memory using \hyperlink{group__Evas__Object__Image_gac27fd0ceabe5f56607b7a86d71577df1}{evas\+\_\+object\+\_\+image\+\_\+file\+\_\+set()}.

The {\ttfamily format} is optional (pass {\ttfamily N\+U\+LL} if you don\textquotesingle{}t need/use it). It is used to help Evas guess better which loader to use for the data. It may simply be the \char`\"{}extension\char`\"{} of the file as it would normally be on disk such as \char`\"{}jpg\char`\"{} or \char`\"{}png\char`\"{} or \char`\"{}gif\char`\"{} etc.


\begin{DoxyParams}{Parameters}
{\em obj} & The given image object. \\
\hline
{\em data} & The image file data address \\
\hline
{\em size} & The size of the image file data in bytes \\
\hline
{\em format} & The format of the file (optional), or {\ttfamily N\+U\+LL} if not needed \\
\hline
{\em key} & The image key in file, or {\ttfamily N\+U\+LL}. \\
\hline
\end{DoxyParams}


References eina\+\_\+file\+\_\+virtualize(), and E\+I\+N\+A\+\_\+\+T\+R\+UE.

\mbox{\Hypertarget{group__Evas__Object__Image_gaabe0ddc5e656d6c09f9f4dd85f981279}\label{group__Evas__Object__Image_gaabe0ddc5e656d6c09f9f4dd85f981279}} 
\index{Image Object Functions@{Image Object Functions}!evas\+\_\+object\+\_\+image\+\_\+native\+\_\+surface\+\_\+set@{evas\+\_\+object\+\_\+image\+\_\+native\+\_\+surface\+\_\+set}}
\index{evas\+\_\+object\+\_\+image\+\_\+native\+\_\+surface\+\_\+set@{evas\+\_\+object\+\_\+image\+\_\+native\+\_\+surface\+\_\+set}!Image Object Functions@{Image Object Functions}}
\subsubsection{\texorpdfstring{evas\+\_\+object\+\_\+image\+\_\+native\+\_\+surface\+\_\+set()}{evas\_object\_image\_native\_surface\_set()}}
{\footnotesize\ttfamily void evas\+\_\+object\+\_\+image\+\_\+native\+\_\+surface\+\_\+set (\begin{DoxyParamCaption}\item[{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object} $\ast$}]{obj,  }\item[{\hyperlink{Evas__Common_8h_ae35ae0b7b909a9e956836b92d63b493d}{Evas\+\_\+\+Native\+\_\+\+Surface} $\ast$}]{surf }\end{DoxyParamCaption})}



Set the native surface of a given image of the canvas. 


\begin{DoxyParams}{Parameters}
{\em obj} & The given canvas pointer. \\
\hline
{\em surf} & The new native surface.\\
\hline
\end{DoxyParams}
This function sets a native surface of a given canvas image. 

References eo\+\_\+data\+\_\+scope\+\_\+get(), E\+V\+A\+S\+\_\+\+C\+A\+L\+L\+B\+A\+C\+K\+\_\+\+D\+EL, evas\+\_\+object\+\_\+event\+\_\+callback\+\_\+add(), and evas\+\_\+object\+\_\+event\+\_\+callback\+\_\+del\+\_\+full().



Referenced by evas\+\_\+object\+\_\+image\+\_\+pixels\+\_\+import().

\mbox{\Hypertarget{group__Evas__Object__Image_gae314b3d41feb8c395854d8f03cb1d6b2}\label{group__Evas__Object__Image_gae314b3d41feb8c395854d8f03cb1d6b2}} 
\index{Image Object Functions@{Image Object Functions}!evas\+\_\+object\+\_\+image\+\_\+preload@{evas\+\_\+object\+\_\+image\+\_\+preload}}
\index{evas\+\_\+object\+\_\+image\+\_\+preload@{evas\+\_\+object\+\_\+image\+\_\+preload}!Image Object Functions@{Image Object Functions}}
\subsubsection{\texorpdfstring{evas\+\_\+object\+\_\+image\+\_\+preload()}{evas\_object\_image\_preload()}}
{\footnotesize\ttfamily void evas\+\_\+object\+\_\+image\+\_\+preload (\begin{DoxyParamCaption}\item[{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object} $\ast$}]{obj,  }\item[{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}}]{cancel }\end{DoxyParamCaption})}



Preload an image object\textquotesingle{}s image data in the background. 


\begin{DoxyParams}{Parameters}
{\em obj} & The given image object. \\
\hline
{\em cancel} & {\ttfamily E\+I\+N\+A\+\_\+\+F\+A\+L\+SE} will add it the preloading work queue, {\ttfamily E\+I\+N\+A\+\_\+\+T\+R\+UE} will remove it (if it was issued before).\\
\hline
\end{DoxyParams}
This function requests the preload of the data image in the background. The work is queued before being processed (because there might be other pending requests of this type).

Whenever the image data gets loaded, Evas will call \hyperlink{group__Evas_ggad64cde0da38a60e7cb7905b3ab216968a5cd5ca5f4dcd51dd2429f020cb2dfa9e}{E\+V\+A\+S\+\_\+\+C\+A\+L\+L\+B\+A\+C\+K\+\_\+\+I\+M\+A\+G\+E\+\_\+\+P\+R\+E\+L\+O\+A\+D\+ED} registered callbacks on {\ttfamily obj} (what may be immediately, if the data was already preloaded before).

Use {\ttfamily E\+I\+N\+A\+\_\+\+T\+R\+UE} for {\ttfamily cancel} on scenarios where you don\textquotesingle{}t need the image data preloaded anymore.

\begin{DoxyNote}{Note}
Any \hyperlink{group__Evas__Font__Group_ga9cbc13661584e49fb9d9cdab514a1eeb}{evas\+\_\+object\+\_\+show()} call after \hyperlink{group__Evas__Object__Image_gae314b3d41feb8c395854d8f03cb1d6b2}{evas\+\_\+object\+\_\+image\+\_\+preload()} will make the latter to be {\bfseries cancelled}, with the loading process now taking place {\bfseries synchronously} (and, thus, blocking the return of the former until the image is loaded). It is highly advisable, then, that the user preload an image with it being {\bfseries hidden}, just to be shown on the \hyperlink{group__Evas_ggad64cde0da38a60e7cb7905b3ab216968a5cd5ca5f4dcd51dd2429f020cb2dfa9e}{E\+V\+A\+S\+\_\+\+C\+A\+L\+L\+B\+A\+C\+K\+\_\+\+I\+M\+A\+G\+E\+\_\+\+P\+R\+E\+L\+O\+A\+D\+ED} event\textquotesingle{}s callback. 
\end{DoxyNote}
\begin{Desc}
\item[Examples\+: ]\par
\hyperlink{evas-images2_8c-example}{evas-\/images2.\+c}.\end{Desc}


Referenced by edje\+\_\+evas\+\_\+global\+\_\+perspective\+\_\+get().

\mbox{\Hypertarget{group__Evas__Object__Image_ga053a1e4ab2d79edf3fff9dc89f90b355}\label{group__Evas__Object__Image_ga053a1e4ab2d79edf3fff9dc89f90b355}} 
\index{Image Object Functions@{Image Object Functions}!evas\+\_\+object\+\_\+image\+\_\+source\+\_\+unset@{evas\+\_\+object\+\_\+image\+\_\+source\+\_\+unset}}
\index{evas\+\_\+object\+\_\+image\+\_\+source\+\_\+unset@{evas\+\_\+object\+\_\+image\+\_\+source\+\_\+unset}!Image Object Functions@{Image Object Functions}}
\subsubsection{\texorpdfstring{evas\+\_\+object\+\_\+image\+\_\+source\+\_\+unset()}{evas\_object\_image\_source\_unset()}}
{\footnotesize\ttfamily \hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} evas\+\_\+object\+\_\+image\+\_\+source\+\_\+unset (\begin{DoxyParamCaption}\item[{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object} $\ast$}]{obj }\end{DoxyParamCaption})}



Clear the source object on a proxy image object. 


\begin{DoxyParams}{Parameters}
{\em obj} & Image object to clear source of. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
{\ttfamily E\+I\+N\+A\+\_\+\+T\+R\+UE} on success, {\ttfamily E\+I\+N\+A\+\_\+\+F\+A\+L\+SE} on error.
\end{DoxyReturn}
This is equivalent to calling evas\+\_\+object\+\_\+image\+\_\+source\+\_\+set() with a {\ttfamily N\+U\+LL} source. 

References E\+I\+N\+A\+\_\+\+F\+A\+L\+SE.



Referenced by evas\+\_\+object\+\_\+del().

\mbox{\Hypertarget{group__Evas__Object__Image_ga2c9de2b78628482f61547779521437f2}\label{group__Evas__Object__Image_ga2c9de2b78628482f61547779521437f2}} 
\index{Image Object Functions@{Image Object Functions}!evas\+\_\+object\+\_\+image\+\_\+alpha\+\_\+mask\+\_\+set@{evas\+\_\+object\+\_\+image\+\_\+alpha\+\_\+mask\+\_\+set}}
\index{evas\+\_\+object\+\_\+image\+\_\+alpha\+\_\+mask\+\_\+set@{evas\+\_\+object\+\_\+image\+\_\+alpha\+\_\+mask\+\_\+set}!Image Object Functions@{Image Object Functions}}
\subsubsection{\texorpdfstring{evas\+\_\+object\+\_\+image\+\_\+alpha\+\_\+mask\+\_\+set()}{evas\_object\_image\_alpha\_mask\_set()}}
{\footnotesize\ttfamily void evas\+\_\+object\+\_\+image\+\_\+alpha\+\_\+mask\+\_\+set (\begin{DoxyParamCaption}\item[{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object} $\ast$}]{obj,  }\item[{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}}]{ismask }\end{DoxyParamCaption})}



Enable an image to be used as an alpha mask. 

This will set any flags, and discard any excess image data not used as an alpha mask.

Note there is little point in using a image as alpha mask unless it has an alpha channel.


\begin{DoxyParams}{Parameters}
{\em obj} & Object to use as an alpha mask. \\
\hline
{\em ismask} & Use image as alphamask, must be true. \\
\hline
\end{DoxyParams}


References E\+I\+N\+A\+\_\+\+C\+O\+W\+\_\+\+W\+R\+I\+T\+E\+\_\+\+B\+E\+G\+IN, E\+I\+N\+A\+\_\+\+C\+O\+W\+\_\+\+W\+R\+I\+T\+E\+\_\+\+E\+ND, E\+I\+N\+A\+\_\+\+F\+A\+L\+SE, E\+I\+N\+A\+\_\+\+I\+N\+L\+I\+S\+T\+\_\+\+F\+O\+R\+E\+A\+CH, eina\+\_\+list\+\_\+append(), eina\+\_\+list\+\_\+count(), eina\+\_\+list\+\_\+data\+\_\+find(), eina\+\_\+list\+\_\+remove(), E\+I\+N\+A\+\_\+\+T\+R\+UE, eo\+\_\+data\+\_\+scope\+\_\+get(), eo\+\_\+isa(), eo\+\_\+ref(), eo\+\_\+unref(), evas\+\_\+image\+\_\+cache\+\_\+flush(), evas\+\_\+map\+\_\+free(), evas\+\_\+object\+\_\+image\+\_\+animated\+\_\+get(), evas\+\_\+object\+\_\+image\+\_\+file\+\_\+set(), and W\+RN.

\mbox{\Hypertarget{group__Evas__Object__Image_gac27fd0ceabe5f56607b7a86d71577df1}\label{group__Evas__Object__Image_gac27fd0ceabe5f56607b7a86d71577df1}} 
\index{Image Object Functions@{Image Object Functions}!evas\+\_\+object\+\_\+image\+\_\+file\+\_\+set@{evas\+\_\+object\+\_\+image\+\_\+file\+\_\+set}}
\index{evas\+\_\+object\+\_\+image\+\_\+file\+\_\+set@{evas\+\_\+object\+\_\+image\+\_\+file\+\_\+set}!Image Object Functions@{Image Object Functions}}
\subsubsection{\texorpdfstring{evas\+\_\+object\+\_\+image\+\_\+file\+\_\+set()}{evas\_object\_image\_file\_set()}}
{\footnotesize\ttfamily void evas\+\_\+object\+\_\+image\+\_\+file\+\_\+set (\begin{DoxyParamCaption}\item[{\hyperlink{group__Eo_ga9f3010a50b61a892d41f4ec2bda73f4c}{Eo} $\ast$}]{obj,  }\item[{const char $\ast$}]{file,  }\item[{const char $\ast$}]{key }\end{DoxyParamCaption})}



Set the source file from where an image object must fetch the real image data (it may be an Eet file, besides pure image ones). 

If the file supports multiple data stored in it (as Eet files do), you can specify the key to be used as the index of the image in this file.

Example\+: 
\begin{DoxyCode}
img = \hyperlink{group__Evas__Object__Image_gadd901a6b181c38dc040537b3fd76fcc6}{evas\_object\_image\_add}(canvas);
\hyperlink{group__Evas__Object__Image_gac27fd0ceabe5f56607b7a86d71577df1}{evas\_object\_image\_file\_set}(img, \textcolor{stringliteral}{"/path/to/img"}, NULL);
err = evas\_object\_image\_load\_error\_get(img);
\textcolor{keywordflow}{if} (err != EVAS\_LOAD\_ERROR\_NONE)
\{
fprintf(stderr, \textcolor{stringliteral}{"could not load image '%s'. error string is \(\backslash\)"%s\(\backslash\)"\(\backslash\)n"},
valid\_path, \hyperlink{group__Evas__Utils_gaca3384642e5ebb32cfeab24c760c739a}{evas\_load\_error\_str}(err));
\}
\textcolor{keywordflow}{else}
\{
\hyperlink{group__Evas__Object__Image_gaf9a32e36b3446f597baf95aab37e33da}{evas\_object\_image\_fill\_set}(img, 0, 0, w, h);
\hyperlink{group__Evas__Font__Group_ga21e8604c0e4a93e469bff4bd069e82b5}{evas\_object\_resize}(img, w, h);
\hyperlink{group__Evas__Object__Group__Basic_ga9cbc13661584e49fb9d9cdab514a1eeb}{evas\_object\_show}(img);
\}
\end{DoxyCode}



\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em file} & The image file path. \\
\hline
\mbox{\tt in}  & {\em key} & The image key in {\ttfamily file} (if its an Eet one), or {\ttfamily N\+U\+LL}, otherwise. \\
\hline
\end{DoxyParams}
\begin{Desc}
\item[Examples\+: ]\par
\hyperlink{ecore_evas_buffer_example_02_8c-example}{ecore\+\_\+evas\+\_\+buffer\+\_\+example\+\_\+02.\+c}, \hyperlink{edje-basic_8c-example}{edje-\/basic.\+c}, \hyperlink{edje-signals-messages_8c-example}{edje-\/signals-\/messages.\+c}, \hyperlink{ephysics_logo_8c-example}{ephysics\+\_\+logo.\+c}, \hyperlink{evas-aspect-hints_8c-example}{evas-\/aspect-\/hints.\+c}, \hyperlink{evas-box_8c-example}{evas-\/box.\+c}, \hyperlink{evas-events_8c-example}{evas-\/events.\+c}, \hyperlink{evas-hints_8c-example}{evas-\/hints.\+c}, \hyperlink{evas-images_8c-example}{evas-\/images.\+c}, \hyperlink{evas-images2_8c-example}{evas-\/images2.\+c}, \hyperlink{evas-map-utils_8c-example}{evas-\/map-\/utils.\+c}, \hyperlink{evas-object-manipulation_8c-example}{evas-\/object-\/manipulation.\+c}, \hyperlink{evas-smart-interface_8c-example}{evas-\/smart-\/interface.\+c}, \hyperlink{evas-smart-object_8c-example}{evas-\/smart-\/object.\+c}, and \hyperlink{evas-text_8c-example}{evas-\/text.\+c}.\end{Desc}


Referenced by ecore\+\_\+evas\+\_\+cursor\+\_\+set(), and evas\+\_\+object\+\_\+image\+\_\+alpha\+\_\+mask\+\_\+set().

\mbox{\Hypertarget{group__Evas__Object__Image_ga525cd3bf52ec9f335d0d62121adf9562}\label{group__Evas__Object__Image_ga525cd3bf52ec9f335d0d62121adf9562}} 
\index{Image Object Functions@{Image Object Functions}!evas\+\_\+object\+\_\+image\+\_\+file\+\_\+get@{evas\+\_\+object\+\_\+image\+\_\+file\+\_\+get}}
\index{evas\+\_\+object\+\_\+image\+\_\+file\+\_\+get@{evas\+\_\+object\+\_\+image\+\_\+file\+\_\+get}!Image Object Functions@{Image Object Functions}}
\subsubsection{\texorpdfstring{evas\+\_\+object\+\_\+image\+\_\+file\+\_\+get()}{evas\_object\_image\_file\_get()}}
{\footnotesize\ttfamily void evas\+\_\+object\+\_\+image\+\_\+file\+\_\+get (\begin{DoxyParamCaption}\item[{const \hyperlink{group__Eo_ga9f3010a50b61a892d41f4ec2bda73f4c}{Eo} $\ast$}]{obj,  }\item[{const char $\ast$$\ast$}]{file,  }\item[{const char $\ast$$\ast$}]{key }\end{DoxyParamCaption})}



Retrieve the source file from where an image object is to fetch the real image data (it may be an Eet file, besides pure image ones). 

You must {\bfseries not} modify the strings on the returned pointers.

\begin{DoxyNote}{Note}
Use {\ttfamily N\+U\+LL} pointers on the file components you\textquotesingle{}re not interested in\+: they\textquotesingle{}ll be ignored by the function.
\end{DoxyNote}

\begin{DoxyParams}[1]{Parameters}
\mbox{\tt out}  & {\em file} & The image file path. \\
\hline
\mbox{\tt out}  & {\em key} & The image key in {\ttfamily file} (if its an Eet one), or {\ttfamily N\+U\+LL}, otherwise. \\
\hline
\end{DoxyParams}


Referenced by edje\+\_\+evas\+\_\+global\+\_\+perspective\+\_\+get().

\mbox{\Hypertarget{group__Evas__Object__Image_gaad29d123bfb439a107222f87ee4306aa}\label{group__Evas__Object__Image_gaad29d123bfb439a107222f87ee4306aa}} 
\index{Image Object Functions@{Image Object Functions}!evas\+\_\+object\+\_\+image\+\_\+mmap\+\_\+set@{evas\+\_\+object\+\_\+image\+\_\+mmap\+\_\+set}}
\index{evas\+\_\+object\+\_\+image\+\_\+mmap\+\_\+set@{evas\+\_\+object\+\_\+image\+\_\+mmap\+\_\+set}!Image Object Functions@{Image Object Functions}}
\subsubsection{\texorpdfstring{evas\+\_\+object\+\_\+image\+\_\+mmap\+\_\+set()}{evas\_object\_image\_mmap\_set()}}
{\footnotesize\ttfamily void evas\+\_\+object\+\_\+image\+\_\+mmap\+\_\+set (\begin{DoxyParamCaption}\item[{\hyperlink{group__Eo_ga9f3010a50b61a892d41f4ec2bda73f4c}{Eo} $\ast$}]{obj,  }\item[{const \hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File} $\ast$}]{f,  }\item[{const char $\ast$}]{key }\end{DoxyParamCaption})}



Set the source mmaped file from where an image object must fetch the real image data (it must be an Eina\+\_\+\+File). 

If the file supports multiple data stored in it (as Eet files do), you can specify the key to be used as the index of the image in this file.

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

\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em f} & The mmaped file \\
\hline
\mbox{\tt in}  & {\em key} & The image key in {\ttfamily file} (if its an Eet one), or {\ttfamily N\+U\+LL}, otherwise. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{group__Evas__Object__Image_ga4dac4796c8f9375e4c10518722ce4657}\label{group__Evas__Object__Image_ga4dac4796c8f9375e4c10518722ce4657}} 
\index{Image Object Functions@{Image Object Functions}!evas\+\_\+object\+\_\+image\+\_\+mmap\+\_\+get@{evas\+\_\+object\+\_\+image\+\_\+mmap\+\_\+get}}
\index{evas\+\_\+object\+\_\+image\+\_\+mmap\+\_\+get@{evas\+\_\+object\+\_\+image\+\_\+mmap\+\_\+get}!Image Object Functions@{Image Object Functions}}
\subsubsection{\texorpdfstring{evas\+\_\+object\+\_\+image\+\_\+mmap\+\_\+get()}{evas\_object\_image\_mmap\_get()}}
{\footnotesize\ttfamily void evas\+\_\+object\+\_\+image\+\_\+mmap\+\_\+get (\begin{DoxyParamCaption}\item[{const \hyperlink{group__Eo_ga9f3010a50b61a892d41f4ec2bda73f4c}{Eo} $\ast$}]{obj,  }\item[{const \hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File} $\ast$$\ast$}]{f,  }\item[{const char $\ast$$\ast$}]{key }\end{DoxyParamCaption})}



Get the source mmaped file from where an image object must fetch the real image data (it must be an Eina\+\_\+\+File). 

If the file supports multiple data stored in it (as Eet files do), you can get the key to be used as the index of the image in this file.

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

\begin{DoxyParams}[1]{Parameters}
\mbox{\tt out}  & {\em f} & The mmaped file \\
\hline
\mbox{\tt out}  & {\em key} & The image key in {\ttfamily file} (if its an Eet one), or {\ttfamily N\+U\+LL}, otherwise. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{group__Evas__Object__Image_ga8bd6201d1b5c5f0e65600b491c6557e4}\label{group__Evas__Object__Image_ga8bd6201d1b5c5f0e65600b491c6557e4}} 
\index{Image Object Functions@{Image Object Functions}!evas\+\_\+object\+\_\+image\+\_\+save@{evas\+\_\+object\+\_\+image\+\_\+save}}
\index{evas\+\_\+object\+\_\+image\+\_\+save@{evas\+\_\+object\+\_\+image\+\_\+save}!Image Object Functions@{Image Object Functions}}
\subsubsection{\texorpdfstring{evas\+\_\+object\+\_\+image\+\_\+save()}{evas\_object\_image\_save()}}
{\footnotesize\ttfamily \hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} evas\+\_\+object\+\_\+image\+\_\+save (\begin{DoxyParamCaption}\item[{const \hyperlink{group__Eo_ga9f3010a50b61a892d41f4ec2bda73f4c}{Eo} $\ast$}]{obj,  }\item[{const char $\ast$}]{file,  }\item[{const char $\ast$}]{key,  }\item[{const char $\ast$}]{flags }\end{DoxyParamCaption})}



Save the given image object\textquotesingle{}s contents to an (image) file. 

Proxy object is image object, but it doesn\textquotesingle{}t have contents. So you can\textquotesingle{}t use this function for proxy objects.

The extension suffix on {\ttfamily file} will determine which {\bfseries saver module} Evas is to use when saving, thus the final file\textquotesingle{}s format. If the file supports multiple data stored in it (Eet ones), you can specify the key to be used as the index of the image in it.

You can specify some flags when saving the image. Currently acceptable flags are {\ttfamily quality} and {\ttfamily compress}. Eg.\+: {\ttfamily \char`\"{}quality=100 compress=9\char`\"{}} 

quality is hint for the quality of image,0-\/100. 0 means low quality and saved image size is small. 100 means high quality and saved image size is big.

compress is hint for the compression modes (Eet ones) or for the compression flags (Png one) (1 == compress, 0 = don\textquotesingle{}t compress).


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em file} & The filename to be used to save the image (extension obligatory). \\
\hline
\mbox{\tt in}  & {\em key} & The image key in the file (if an Eet one), or {\ttfamily N\+U\+LL}, otherwise. \\
\hline
\mbox{\tt in}  & {\em flags} & String containing the flags to be used ({\ttfamily N\+U\+LL} for none). \\
\hline
\end{DoxyParams}
\begin{Desc}
\item[Examples\+: ]\par
\hyperlink{evas-images2_8c-example}{evas-\/images2.\+c}.\end{Desc}
\mbox{\Hypertarget{group__Evas__Object__Image_ga53e93ec0f368db0c6c780e01cbbc9249}\label{group__Evas__Object__Image_ga53e93ec0f368db0c6c780e01cbbc9249}} 
\index{Image Object Functions@{Image Object Functions}!evas\+\_\+object\+\_\+image\+\_\+animated\+\_\+get@{evas\+\_\+object\+\_\+image\+\_\+animated\+\_\+get}}
\index{evas\+\_\+object\+\_\+image\+\_\+animated\+\_\+get@{evas\+\_\+object\+\_\+image\+\_\+animated\+\_\+get}!Image Object Functions@{Image Object Functions}}
\subsubsection{\texorpdfstring{evas\+\_\+object\+\_\+image\+\_\+animated\+\_\+get()}{evas\_object\_image\_animated\_get()}}
{\footnotesize\ttfamily \hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} evas\+\_\+object\+\_\+image\+\_\+animated\+\_\+get (\begin{DoxyParamCaption}\item[{const \hyperlink{group__Eo_ga9f3010a50b61a892d41f4ec2bda73f4c}{Eo} $\ast$}]{obj }\end{DoxyParamCaption})}



Check if an image object can be animated (have multiple frames) 

\begin{DoxyReturn}{Returns}
whether obj support animation
\end{DoxyReturn}
This returns if the image file of an image object is capable of animation such as an animated gif file might. This is only useful to be called once the image object file has been set.

Example\+: 
\begin{DoxyCode}
\textcolor{keyword}{extern} \hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object} *obj;

\textcolor{keywordflow}{if} (\hyperlink{group__Evas__Object__Image_ga53e93ec0f368db0c6c780e01cbbc9249}{evas\_object\_image\_animated\_get}(obj))
\{
\textcolor{keywordtype}{int} frame\_count;
\textcolor{keywordtype}{int} loop\_count;
Evas\_Image\_Animated\_Loop\_Hint loop\_type;
\textcolor{keywordtype}{double} duration;

frame\_count = evas\_object\_image\_animated\_frame\_count\_get(obj);
printf(\textcolor{stringliteral}{"This image has %d frames\(\backslash\)n"},frame\_count);

duration = evas\_object\_image\_animated\_frame\_duration\_get(obj,1,0);
printf(\textcolor{stringliteral}{"Frame 1's duration is %f. You had better set object's frame to 2 after this duration using timer\(\backslash\)n"}
      );

loop\_count = evas\_object\_image\_animated\_loop\_count\_get(obj);
printf(\textcolor{stringliteral}{"loop count is %d. You had better run loop %d times\(\backslash\)n"},loop\_count,loop\_count);

loop\_type = evas\_object\_image\_animated\_loop\_type\_get(obj);
\textcolor{keywordflow}{if} (loop\_type == EVAS\_IMAGE\_ANIMATED\_HINT\_LOOP)
printf(\textcolor{stringliteral}{"You had better set frame like 1->2->3->1->2->3...\(\backslash\)n"});
\textcolor{keywordflow}{else} \textcolor{keywordflow}{if} (loop\_type == EVAS\_IMAGE\_ANIMATED\_HINT\_PINGPONG)
printf(\textcolor{stringliteral}{"You had better set frame like 1->2->3->2->1->2...\(\backslash\)n"});
\textcolor{keywordflow}{else}
printf(\textcolor{stringliteral}{"Unknown loop type\(\backslash\)n"});

evas\_object\_image\_animated\_frame\_set(obj,1);
printf(\textcolor{stringliteral}{"You set image object's frame to 1. You can see frame 1\(\backslash\)n"});
\}
\end{DoxyCode}


\begin{DoxySeeAlso}{See also}
\hyperlink{group__Evas__Object__Image_ga53e93ec0f368db0c6c780e01cbbc9249}{evas\+\_\+object\+\_\+image\+\_\+animated\+\_\+get()} 

evas\+\_\+object\+\_\+image\+\_\+animated\+\_\+frame\+\_\+count\+\_\+get() 

evas\+\_\+object\+\_\+image\+\_\+animated\+\_\+loop\+\_\+type\+\_\+get() 

evas\+\_\+object\+\_\+image\+\_\+animated\+\_\+loop\+\_\+count\+\_\+get() 

evas\+\_\+object\+\_\+image\+\_\+animated\+\_\+frame\+\_\+duration\+\_\+get() 

evas\+\_\+object\+\_\+image\+\_\+animated\+\_\+frame\+\_\+set() 
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
1.\+1 
\end{DoxySince}


Referenced by evas\+\_\+object\+\_\+image\+\_\+alpha\+\_\+mask\+\_\+set().

\mbox{\Hypertarget{group__Evas__Object__Image_ga46518b9f2ff1fc849db13b3ebe366026}\label{group__Evas__Object__Image_ga46518b9f2ff1fc849db13b3ebe366026}} 
\index{Image Object Functions@{Image Object Functions}!evas\+\_\+object\+\_\+image\+\_\+load\+\_\+size\+\_\+set@{evas\+\_\+object\+\_\+image\+\_\+load\+\_\+size\+\_\+set}}
\index{evas\+\_\+object\+\_\+image\+\_\+load\+\_\+size\+\_\+set@{evas\+\_\+object\+\_\+image\+\_\+load\+\_\+size\+\_\+set}!Image Object Functions@{Image Object Functions}}
\subsubsection{\texorpdfstring{evas\+\_\+object\+\_\+image\+\_\+load\+\_\+size\+\_\+set()}{evas\_object\_image\_load\_size\_set()}}
{\footnotesize\ttfamily void evas\+\_\+object\+\_\+image\+\_\+load\+\_\+size\+\_\+set (\begin{DoxyParamCaption}\item[{\hyperlink{group__Eo_ga9f3010a50b61a892d41f4ec2bda73f4c}{Eo} $\ast$}]{obj,  }\item[{int}]{w,  }\item[{int}]{h }\end{DoxyParamCaption})}



Set the load size of a given image object\textquotesingle{}s source image. 

This function sets a new geometry size for the given canvas image. The image will be loaded into memory as if it was the set size instead of the original size.

\begin{DoxyNote}{Note}
The size of a given image object\textquotesingle{}s source image will be less than or equal to the size of {\ttfamily w} and {\ttfamily h}.
\end{DoxyNote}
\begin{DoxySeeAlso}{See also}
\hyperlink{group__Evas__Object__Image_gaffdea29e7a6cec374e6aa30bbb4bcca7}{evas\+\_\+object\+\_\+image\+\_\+load\+\_\+size\+\_\+get()}
\end{DoxySeeAlso}

\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em w} & The new width of the image\textquotesingle{}s load size. \\
\hline
\mbox{\tt in}  & {\em h} & The new height of the image\textquotesingle{}s load size. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{group__Evas__Object__Image_gaffdea29e7a6cec374e6aa30bbb4bcca7}\label{group__Evas__Object__Image_gaffdea29e7a6cec374e6aa30bbb4bcca7}} 
\index{Image Object Functions@{Image Object Functions}!evas\+\_\+object\+\_\+image\+\_\+load\+\_\+size\+\_\+get@{evas\+\_\+object\+\_\+image\+\_\+load\+\_\+size\+\_\+get}}
\index{evas\+\_\+object\+\_\+image\+\_\+load\+\_\+size\+\_\+get@{evas\+\_\+object\+\_\+image\+\_\+load\+\_\+size\+\_\+get}!Image Object Functions@{Image Object Functions}}
\subsubsection{\texorpdfstring{evas\+\_\+object\+\_\+image\+\_\+load\+\_\+size\+\_\+get()}{evas\_object\_image\_load\_size\_get()}}
{\footnotesize\ttfamily void evas\+\_\+object\+\_\+image\+\_\+load\+\_\+size\+\_\+get (\begin{DoxyParamCaption}\item[{const \hyperlink{group__Eo_ga9f3010a50b61a892d41f4ec2bda73f4c}{Eo} $\ast$}]{obj,  }\item[{int $\ast$}]{w,  }\item[{int $\ast$}]{h }\end{DoxyParamCaption})}



Get the load size of a given image object\textquotesingle{}s source image. 

This function gets the geometry size set manually for the given canvas image.

\begin{DoxyNote}{Note}
Use {\ttfamily N\+U\+LL} pointers on the size components you\textquotesingle{}re not interested in\+: they\textquotesingle{}ll be ignored by the function. 

{\ttfamily w} and {\ttfamily h} will be set with the image\textquotesingle{}s loading size only if the image\textquotesingle{}s load size is set manually\+: if \hyperlink{group__Evas__Object__Image_ga46518b9f2ff1fc849db13b3ebe366026}{evas\+\_\+object\+\_\+image\+\_\+load\+\_\+size\+\_\+set()} has not been called, {\ttfamily w} and {\ttfamily h} will be set with 0.
\end{DoxyNote}
\begin{DoxySeeAlso}{See also}
\hyperlink{group__Evas__Object__Image_ga46518b9f2ff1fc849db13b3ebe366026}{evas\+\_\+object\+\_\+image\+\_\+load\+\_\+size\+\_\+set()} for more details
\end{DoxySeeAlso}

\begin{DoxyParams}[1]{Parameters}
\mbox{\tt out}  & {\em w} & The new width of the image\textquotesingle{}s load size. \\
\hline
\mbox{\tt out}  & {\em h} & The new height of the image\textquotesingle{}s load size. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{group__Evas__Object__Image_gaf79e692448eb80c39da1fd60f8db5dda}\label{group__Evas__Object__Image_gaf79e692448eb80c39da1fd60f8db5dda}} 
\index{Image Object Functions@{Image Object Functions}!evas\+\_\+object\+\_\+image\+\_\+smooth\+\_\+scale\+\_\+set@{evas\+\_\+object\+\_\+image\+\_\+smooth\+\_\+scale\+\_\+set}}
\index{evas\+\_\+object\+\_\+image\+\_\+smooth\+\_\+scale\+\_\+set@{evas\+\_\+object\+\_\+image\+\_\+smooth\+\_\+scale\+\_\+set}!Image Object Functions@{Image Object Functions}}
\subsubsection{\texorpdfstring{evas\+\_\+object\+\_\+image\+\_\+smooth\+\_\+scale\+\_\+set()}{evas\_object\_image\_smooth\_scale\_set()}}
{\footnotesize\ttfamily void evas\+\_\+object\+\_\+image\+\_\+smooth\+\_\+scale\+\_\+set (\begin{DoxyParamCaption}\item[{\hyperlink{group__Eo_ga9f3010a50b61a892d41f4ec2bda73f4c}{Eo} $\ast$}]{obj,  }\item[{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}}]{smooth\+\_\+scale }\end{DoxyParamCaption})}



Sets whether to use high-\/quality image scaling algorithm on the given image object. 

When enabled, a higher quality image scaling algorithm is used when scaling images to sizes other than the source image\textquotesingle{}s original one. This gives better results but is more computationally expensive.

\begin{DoxyNote}{Note}
Image objects get created originally with smooth scaling {\bfseries on}.
\end{DoxyNote}
\begin{DoxySeeAlso}{See also}
\hyperlink{group__Evas__Object__Image_gac0177597371f246ac377782fcc59c5be}{evas\+\_\+object\+\_\+image\+\_\+smooth\+\_\+scale\+\_\+get()}
\end{DoxySeeAlso}

\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em smooth\+\_\+scale} & Whether to use smooth scale or not. \\
\hline
\end{DoxyParams}
\begin{Desc}
\item[Examples\+: ]\par
\hyperlink{evas-images_8c-example}{evas-\/images.\+c}.\end{Desc}
\mbox{\Hypertarget{group__Evas__Object__Image_gac0177597371f246ac377782fcc59c5be}\label{group__Evas__Object__Image_gac0177597371f246ac377782fcc59c5be}} 
\index{Image Object Functions@{Image Object Functions}!evas\+\_\+object\+\_\+image\+\_\+smooth\+\_\+scale\+\_\+get@{evas\+\_\+object\+\_\+image\+\_\+smooth\+\_\+scale\+\_\+get}}
\index{evas\+\_\+object\+\_\+image\+\_\+smooth\+\_\+scale\+\_\+get@{evas\+\_\+object\+\_\+image\+\_\+smooth\+\_\+scale\+\_\+get}!Image Object Functions@{Image Object Functions}}
\subsubsection{\texorpdfstring{evas\+\_\+object\+\_\+image\+\_\+smooth\+\_\+scale\+\_\+get()}{evas\_object\_image\_smooth\_scale\_get()}}
{\footnotesize\ttfamily \hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} evas\+\_\+object\+\_\+image\+\_\+smooth\+\_\+scale\+\_\+get (\begin{DoxyParamCaption}\item[{const \hyperlink{group__Eo_ga9f3010a50b61a892d41f4ec2bda73f4c}{Eo} $\ast$}]{obj }\end{DoxyParamCaption})}



Retrieves whether the given image object is using high-\/quality image scaling algorithm. 

\begin{DoxyReturn}{Returns}
Whether smooth scale is being used.
\end{DoxyReturn}
See \hyperlink{group__Evas__Object__Image_gaf79e692448eb80c39da1fd60f8db5dda}{evas\+\_\+object\+\_\+image\+\_\+smooth\+\_\+scale\+\_\+set()} for more details. \begin{Desc}
\item[Examples\+: ]\par
\hyperlink{evas-images_8c-example}{evas-\/images.\+c}.\end{Desc}
\mbox{\Hypertarget{group__Evas__Object__Image_ga36710dbfad2dfc10ea17f4897c23f367}\label{group__Evas__Object__Image_ga36710dbfad2dfc10ea17f4897c23f367}} 
\index{Image Object Functions@{Image Object Functions}!evas\+\_\+object\+\_\+image\+\_\+fill\+\_\+spread\+\_\+set@{evas\+\_\+object\+\_\+image\+\_\+fill\+\_\+spread\+\_\+set}}
\index{evas\+\_\+object\+\_\+image\+\_\+fill\+\_\+spread\+\_\+set@{evas\+\_\+object\+\_\+image\+\_\+fill\+\_\+spread\+\_\+set}!Image Object Functions@{Image Object Functions}}
\subsubsection{\texorpdfstring{evas\+\_\+object\+\_\+image\+\_\+fill\+\_\+spread\+\_\+set()}{evas\_object\_image\_fill\_spread\_set()}}
{\footnotesize\ttfamily void evas\+\_\+object\+\_\+image\+\_\+fill\+\_\+spread\+\_\+set (\begin{DoxyParamCaption}\item[{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object} $\ast$}]{obj,  }\item[{Evas\+\_\+\+Fill\+\_\+\+Spread}]{spread }\end{DoxyParamCaption})}



Sets the tiling mode for the given evas image object\textquotesingle{}s fill. 

E\+V\+A\+S\+\_\+\+T\+E\+X\+T\+U\+R\+E\+\_\+\+R\+E\+S\+T\+R\+I\+CT, or E\+V\+A\+S\+\_\+\+T\+E\+X\+T\+U\+R\+E\+\_\+\+P\+AD.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em spread} & One of E\+V\+A\+S\+\_\+\+T\+E\+X\+T\+U\+R\+E\+\_\+\+R\+E\+F\+L\+E\+CT, E\+V\+A\+S\+\_\+\+T\+E\+X\+T\+U\+R\+E\+\_\+\+R\+E\+P\+E\+AT, \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{group__Evas__Object__Image_ga66643c896d92deed0e4cf648cf813822}\label{group__Evas__Object__Image_ga66643c896d92deed0e4cf648cf813822}} 
\index{Image Object Functions@{Image Object Functions}!evas\+\_\+object\+\_\+image\+\_\+fill\+\_\+spread\+\_\+get@{evas\+\_\+object\+\_\+image\+\_\+fill\+\_\+spread\+\_\+get}}
\index{evas\+\_\+object\+\_\+image\+\_\+fill\+\_\+spread\+\_\+get@{evas\+\_\+object\+\_\+image\+\_\+fill\+\_\+spread\+\_\+get}!Image Object Functions@{Image Object Functions}}
\subsubsection{\texorpdfstring{evas\+\_\+object\+\_\+image\+\_\+fill\+\_\+spread\+\_\+get()}{evas\_object\_image\_fill\_spread\_get()}}
{\footnotesize\ttfamily Evas\+\_\+\+Fill\+\_\+\+Spread evas\+\_\+object\+\_\+image\+\_\+fill\+\_\+spread\+\_\+get (\begin{DoxyParamCaption}\item[{const \hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object} $\ast$}]{obj }\end{DoxyParamCaption})}



Retrieves the spread (tiling mode) for the given image object\textquotesingle{}s fill. 

\begin{DoxyReturn}{Returns}
The current spread mode of the image object. 
\end{DoxyReturn}
\mbox{\Hypertarget{group__Evas__Object__Image_gaf9a32e36b3446f597baf95aab37e33da}\label{group__Evas__Object__Image_gaf9a32e36b3446f597baf95aab37e33da}} 
\index{Image Object Functions@{Image Object Functions}!evas\+\_\+object\+\_\+image\+\_\+fill\+\_\+set@{evas\+\_\+object\+\_\+image\+\_\+fill\+\_\+set}}
\index{evas\+\_\+object\+\_\+image\+\_\+fill\+\_\+set@{evas\+\_\+object\+\_\+image\+\_\+fill\+\_\+set}!Image Object Functions@{Image Object Functions}}
\subsubsection{\texorpdfstring{evas\+\_\+object\+\_\+image\+\_\+fill\+\_\+set()}{evas\_object\_image\_fill\_set()}}
{\footnotesize\ttfamily void evas\+\_\+object\+\_\+image\+\_\+fill\+\_\+set (\begin{DoxyParamCaption}\item[{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object} $\ast$}]{obj,  }\item[{\hyperlink{group__Evas_ga2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord}}]{x,  }\item[{\hyperlink{group__Evas_ga2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord}}]{y,  }\item[{\hyperlink{group__Evas_ga2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord}}]{w,  }\item[{\hyperlink{group__Evas_ga2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord}}]{h }\end{DoxyParamCaption})}



Set how to fill an image object\textquotesingle{}s drawing rectangle given the (real) image bound to it. 

Note that if {\ttfamily w} or {\ttfamily h} are smaller than the dimensions of {\ttfamily obj}, the displayed image will be {\bfseries tiled} around the object\textquotesingle{}s area. To have only one copy of the bound image drawn, {\ttfamily x} and {\ttfamily y} must be 0 and {\ttfamily w} and {\ttfamily h} need to be the exact width and height of the image object itself, respectively.

See the following image to better understand the effects of this call. On this diagram, both image object and original image source have {\ttfamily a} x {\ttfamily a} dimensions and the image itself is a circle, with empty space around it\+:

  
\begin{DoxyImageNoCaption}
  \mbox{\includegraphics[width=\textwidth,height=\textheight/2,keepaspectratio=true]{image-fill}}
\end{DoxyImageNoCaption}


\begin{DoxyWarning}{Warning}
The default values for the fill parameters are {\ttfamily x} = 0, {\ttfamily y} = 0, {\ttfamily w} = 0 and {\ttfamily h} = 0. Thus, if you\textquotesingle{}re not using the \hyperlink{group__Evas__Object__Image_ga0e8cb83d31d02bf583c75925b7cd14d7}{evas\+\_\+object\+\_\+image\+\_\+filled\+\_\+add()} helper and want your image displayed, you\textquotesingle{}ll have to set valid values with this function on your object.
\end{DoxyWarning}
\begin{DoxyNote}{Note}
evas\+\_\+object\+\_\+image\+\_\+filled\+\_\+set() is a helper function which will {\bfseries override} the values set here automatically, for you, in a given way.
\end{DoxyNote}

\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em x} & The x coordinate (from the top left corner of the bound image) to start drawing from. \\
\hline
\mbox{\tt in}  & {\em y} & The y coordinate (from the top left corner of the bound image) to start drawing from. \\
\hline
\mbox{\tt in}  & {\em w} & The width the bound image will be displayed at. \\
\hline
\mbox{\tt in}  & {\em h} & The height the bound image will be displayed at. \\
\hline
\end{DoxyParams}
\begin{Desc}
\item[Examples\+: ]\par
\hyperlink{evas-images_8c-example}{evas-\/images.\+c}.\end{Desc}


Referenced by ecore\+\_\+evas\+\_\+cursor\+\_\+set(), and ecore\+\_\+evas\+\_\+ews\+\_\+new().

\mbox{\Hypertarget{group__Evas__Object__Image_ga12091147e3567d1714d1a6986c48f179}\label{group__Evas__Object__Image_ga12091147e3567d1714d1a6986c48f179}} 
\index{Image Object Functions@{Image Object Functions}!evas\+\_\+object\+\_\+image\+\_\+fill\+\_\+get@{evas\+\_\+object\+\_\+image\+\_\+fill\+\_\+get}}
\index{evas\+\_\+object\+\_\+image\+\_\+fill\+\_\+get@{evas\+\_\+object\+\_\+image\+\_\+fill\+\_\+get}!Image Object Functions@{Image Object Functions}}
\subsubsection{\texorpdfstring{evas\+\_\+object\+\_\+image\+\_\+fill\+\_\+get()}{evas\_object\_image\_fill\_get()}}
{\footnotesize\ttfamily void evas\+\_\+object\+\_\+image\+\_\+fill\+\_\+get (\begin{DoxyParamCaption}\item[{const \hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object} $\ast$}]{obj,  }\item[{\hyperlink{group__Evas_ga2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord} $\ast$}]{x,  }\item[{\hyperlink{group__Evas_ga2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord} $\ast$}]{y,  }\item[{\hyperlink{group__Evas_ga2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord} $\ast$}]{w,  }\item[{\hyperlink{group__Evas_ga2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord} $\ast$}]{h }\end{DoxyParamCaption})}



Retrieve how an image object is to fill its drawing rectangle, given the (real) image bound to it. 

\begin{DoxyNote}{Note}
Use {\ttfamily N\+U\+LL} pointers on the fill components you\textquotesingle{}re not interested in\+: they\textquotesingle{}ll be ignored by the function.
\end{DoxyNote}
See \hyperlink{group__Evas__Object__Image_gaf9a32e36b3446f597baf95aab37e33da}{evas\+\_\+object\+\_\+image\+\_\+fill\+\_\+set()} for more details.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt out}  & {\em x} & The x coordinate (from the top left corner of the bound image) to start drawing from. \\
\hline
\mbox{\tt out}  & {\em y} & The y coordinate (from the top left corner of the bound image) to start drawing from. \\
\hline
\mbox{\tt out}  & {\em w} & The width the bound image will be displayed at. \\
\hline
\mbox{\tt out}  & {\em h} & The height the bound image will be displayed at. \\
\hline
\end{DoxyParams}
\begin{Desc}
\item[Examples\+: ]\par
\hyperlink{evas-images_8c-example}{evas-\/images.\+c}.\end{Desc}
\mbox{\Hypertarget{group__Evas__Object__Image_ga369c3638028094b1d66bd482778eb6b2}\label{group__Evas__Object__Image_ga369c3638028094b1d66bd482778eb6b2}} 
\index{Image Object Functions@{Image Object Functions}!evas\+\_\+object\+\_\+image\+\_\+size\+\_\+set@{evas\+\_\+object\+\_\+image\+\_\+size\+\_\+set}}
\index{evas\+\_\+object\+\_\+image\+\_\+size\+\_\+set@{evas\+\_\+object\+\_\+image\+\_\+size\+\_\+set}!Image Object Functions@{Image Object Functions}}
\subsubsection{\texorpdfstring{evas\+\_\+object\+\_\+image\+\_\+size\+\_\+set()}{evas\_object\_image\_size\_set()}}
{\footnotesize\ttfamily void evas\+\_\+object\+\_\+image\+\_\+size\+\_\+set (\begin{DoxyParamCaption}\item[{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object} $\ast$}]{obj,  }\item[{int}]{w,  }\item[{int}]{h }\end{DoxyParamCaption})}



Sets the size of the given image object. 

This function will scale down or crop the image so that it is treated as if it were at the given size. If the size given is smaller than the image, it will be cropped. If the size given is larger, then the image will be treated as if it were in the upper left hand corner of a larger image that is otherwise transparent.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em w} & The new width of the image. \\
\hline
\mbox{\tt in}  & {\em h} & The new height of the image. \\
\hline
\end{DoxyParams}
\begin{Desc}
\item[Examples\+: ]\par
\hyperlink{ecore_evas_buffer_example_02_8c-example}{ecore\+\_\+evas\+\_\+buffer\+\_\+example\+\_\+02.\+c}, and \hyperlink{evas-images2_8c-example}{evas-\/images2.\+c}.\end{Desc}


Referenced by ecore\+\_\+evas\+\_\+ews\+\_\+new().

\mbox{\Hypertarget{group__Evas__Object__Image_ga6307d5c3560528d7525a6c2ed16360ed}\label{group__Evas__Object__Image_ga6307d5c3560528d7525a6c2ed16360ed}} 
\index{Image Object Functions@{Image Object Functions}!evas\+\_\+object\+\_\+image\+\_\+size\+\_\+get@{evas\+\_\+object\+\_\+image\+\_\+size\+\_\+get}}
\index{evas\+\_\+object\+\_\+image\+\_\+size\+\_\+get@{evas\+\_\+object\+\_\+image\+\_\+size\+\_\+get}!Image Object Functions@{Image Object Functions}}
\subsubsection{\texorpdfstring{evas\+\_\+object\+\_\+image\+\_\+size\+\_\+get()}{evas\_object\_image\_size\_get()}}
{\footnotesize\ttfamily void evas\+\_\+object\+\_\+image\+\_\+size\+\_\+get (\begin{DoxyParamCaption}\item[{const \hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object} $\ast$}]{obj,  }\item[{int $\ast$}]{w,  }\item[{int $\ast$}]{h }\end{DoxyParamCaption})}



Retrieves the size of the given image object. 

See \hyperlink{group__Evas__Object__Image_ga369c3638028094b1d66bd482778eb6b2}{evas\+\_\+object\+\_\+image\+\_\+size\+\_\+set()} for more details.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt out}  & {\em w} & The new width of the image. \\
\hline
\mbox{\tt out}  & {\em h} & The new height of the image. \\
\hline
\end{DoxyParams}
\begin{Desc}
\item[Examples\+: ]\par
\hyperlink{ephysics_logo_8c-example}{ephysics\+\_\+logo.\+c}, and \hyperlink{evas-map-utils_8c-example}{evas-\/map-\/utils.\+c}.\end{Desc}


Referenced by ecore\+\_\+evas\+\_\+cursor\+\_\+set().

\mbox{\Hypertarget{group__Evas__Object__Image_ga2d7ac31db43f0f2f6ba80e317abb7144}\label{group__Evas__Object__Image_ga2d7ac31db43f0f2f6ba80e317abb7144}} 
\index{Image Object Functions@{Image Object Functions}!evas\+\_\+object\+\_\+image\+\_\+data\+\_\+convert@{evas\+\_\+object\+\_\+image\+\_\+data\+\_\+convert}}
\index{evas\+\_\+object\+\_\+image\+\_\+data\+\_\+convert@{evas\+\_\+object\+\_\+image\+\_\+data\+\_\+convert}!Image Object Functions@{Image Object Functions}}
\subsubsection{\texorpdfstring{evas\+\_\+object\+\_\+image\+\_\+data\+\_\+convert()}{evas\_object\_image\_data\_convert()}}
{\footnotesize\ttfamily void$\ast$ evas\+\_\+object\+\_\+image\+\_\+data\+\_\+convert (\begin{DoxyParamCaption}\item[{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object} $\ast$}]{obj,  }\item[{\hyperlink{group__Evas__Object__Image_ga86836f7ed4e141782a00de58e6ae3b72}{Evas\+\_\+\+Colorspace}}]{to\+\_\+cspace }\end{DoxyParamCaption})}

\begin{DoxyRefDesc}{Deprecated}
\item[\hyperlink{deprecated__deprecated000033}{Deprecated}]evas\+\_\+object\+\_\+image\+\_\+data\+\_\+convert \end{DoxyRefDesc}


References E\+I\+N\+A\+\_\+\+F\+A\+L\+SE, E\+I\+N\+A\+\_\+\+T\+R\+UE, eo\+\_\+class\+\_\+name\+\_\+get(), eo\+\_\+data\+\_\+scope\+\_\+get(), and eo\+\_\+isa().

\mbox{\Hypertarget{group__Evas__Object__Image_gac11c7b56b285c96b7a77a56fc25f3f4c}\label{group__Evas__Object__Image_gac11c7b56b285c96b7a77a56fc25f3f4c}} 
\index{Image Object Functions@{Image Object Functions}!evas\+\_\+object\+\_\+image\+\_\+pixels\+\_\+import@{evas\+\_\+object\+\_\+image\+\_\+pixels\+\_\+import}}
\index{evas\+\_\+object\+\_\+image\+\_\+pixels\+\_\+import@{evas\+\_\+object\+\_\+image\+\_\+pixels\+\_\+import}!Image Object Functions@{Image Object Functions}}
\subsubsection{\texorpdfstring{evas\+\_\+object\+\_\+image\+\_\+pixels\+\_\+import()}{evas\_object\_image\_pixels\_import()}}
{\footnotesize\ttfamily \hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} evas\+\_\+object\+\_\+image\+\_\+pixels\+\_\+import (\begin{DoxyParamCaption}\item[{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object} $\ast$}]{obj,  }\item[{\hyperlink{Evas__Common_8h_abb01076af16fbb50a837b1893b776783}{Evas\+\_\+\+Pixel\+\_\+\+Import\+\_\+\+Source} $\ast$}]{pixels }\end{DoxyParamCaption})}

\begin{DoxyRefDesc}{Deprecated}
\item[\hyperlink{deprecated__deprecated000034}{Deprecated}]evas\+\_\+object\+\_\+image\+\_\+pixels\+\_\+import \end{DoxyRefDesc}


References E\+I\+N\+A\+\_\+\+F\+A\+L\+SE, eina\+\_\+list\+\_\+append(), eina\+\_\+list\+\_\+remove(), E\+I\+N\+A\+\_\+\+T\+R\+UE, E\+I\+N\+A\+\_\+\+U\+N\+U\+S\+ED, eo\+\_\+class\+\_\+name\+\_\+get(), eo\+\_\+data\+\_\+scope\+\_\+get(), eo\+\_\+isa(), evas\+\_\+object\+\_\+image\+\_\+native\+\_\+surface\+\_\+set(), E\+V\+A\+S\+\_\+\+P\+I\+X\+E\+L\+\_\+\+F\+O\+R\+M\+A\+T\+\_\+\+A\+R\+G\+B32, E\+V\+A\+S\+\_\+\+P\+I\+X\+E\+L\+\_\+\+F\+O\+R\+M\+A\+T\+\_\+\+Y\+U\+V420\+P\+\_\+601, E\+V\+A\+S\+\_\+\+V\+I\+D\+E\+O\+\_\+\+S\+U\+R\+F\+A\+C\+E\+\_\+\+V\+E\+R\+S\+I\+ON, \+\_\+\+Evas\+\_\+\+Pixel\+\_\+\+Import\+\_\+\+Source\+::format, \+\_\+\+Evas\+\_\+\+Pixel\+\_\+\+Import\+\_\+\+Source\+::h, \+\_\+\+Evas\+\_\+\+Video\+\_\+\+Surface\+::hide, \+\_\+\+Evas\+\_\+\+Video\+\_\+\+Surface\+::move, \+\_\+\+Evas\+\_\+\+Video\+\_\+\+Surface\+::resize, \+\_\+\+Evas\+\_\+\+Pixel\+\_\+\+Import\+\_\+\+Source\+::rows, \+\_\+\+Evas\+\_\+\+Video\+\_\+\+Surface\+::show, \+\_\+\+Evas\+\_\+\+Video\+\_\+\+Surface\+::update\+\_\+pixels, and \+\_\+\+Evas\+\_\+\+Video\+\_\+\+Surface\+::version.

\mbox{\Hypertarget{group__Evas__Object__Image_ga8f50680090ece901a20d62fa67959c52}\label{group__Evas__Object__Image_ga8f50680090ece901a20d62fa67959c52}} 
\index{Image Object Functions@{Image Object Functions}!evas\+\_\+object\+\_\+image\+\_\+reload@{evas\+\_\+object\+\_\+image\+\_\+reload}}
\index{evas\+\_\+object\+\_\+image\+\_\+reload@{evas\+\_\+object\+\_\+image\+\_\+reload}!Image Object Functions@{Image Object Functions}}
\subsubsection{\texorpdfstring{evas\+\_\+object\+\_\+image\+\_\+reload()}{evas\_object\_image\_reload()}}
{\footnotesize\ttfamily void evas\+\_\+object\+\_\+image\+\_\+reload (\begin{DoxyParamCaption}\item[{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object} $\ast$}]{obj }\end{DoxyParamCaption})}

\begin{DoxyRefDesc}{Deprecated}
\item[\hyperlink{deprecated__deprecated000035}{Deprecated}]evas\+\_\+object\+\_\+image\+\_\+reload \end{DoxyRefDesc}


References alloca(), D\+BG, E\+I\+N\+A\+\_\+\+C\+O\+W\+\_\+\+W\+R\+I\+T\+E\+\_\+\+B\+E\+G\+IN, E\+I\+N\+A\+\_\+\+C\+O\+W\+\_\+\+W\+R\+I\+T\+E\+\_\+\+E\+ND, E\+I\+N\+A\+\_\+\+F\+A\+L\+SE, E\+I\+N\+A\+\_\+\+T\+R\+UE, eo\+\_\+class\+\_\+name\+\_\+get(), eo\+\_\+data\+\_\+scope\+\_\+get(), eo\+\_\+isa(), and W\+RN.

