\doxysection{Image.\+h}
\hypertarget{Image_8h_source}{}\label{Image_8h_source}\index{src/Image.h@{src/Image.h}}

\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ \textcolor{preprocessor}{\#include\ "{}pixel.h"{}}}
\DoxyCodeLine{00002\ \textcolor{preprocessor}{\#include\ <iostream>}}
\DoxyCodeLine{00003\ }
\DoxyCodeLine{00004\ \textcolor{keyword}{using\ namespace\ }std;}
\DoxyCodeLine{00005\ }
\DoxyCodeLine{00006\ \textcolor{keyword}{class\ }\mbox{\hyperlink{classImage}{Image}}}
\DoxyCodeLine{00007\ \{}
\DoxyCodeLine{00008\ \textcolor{keyword}{private}:}
\DoxyCodeLine{00009\ \ \ \ \ \textcolor{keywordtype}{int}\ dimx,dimy;}
\DoxyCodeLine{00010\ \ \ \ \ \mbox{\hyperlink{classPixel}{Pixel}}\ *\ tab;}
\DoxyCodeLine{00011\ \ \ \ \ }
\DoxyCodeLine{00012\ }
\DoxyCodeLine{00013\ \ \ \ \ \textcolor{keyword}{public}:}
\DoxyCodeLine{00014\ \ \ \ \ \mbox{\hyperlink{classImage}{Image}}();}
\DoxyCodeLine{00015\ \ \ \ \ \mbox{\hyperlink{classImage}{Image}}(\textcolor{keywordtype}{int}\ x,\ \textcolor{keywordtype}{int}\ y);}
\DoxyCodeLine{00016\ \ \ \ \ \mbox{\hyperlink{classImage}{\string~Image}}();}
\DoxyCodeLine{00017\ \ \ \ \ \mbox{\hyperlink{classPixel}{Pixel}}\ \&\ getPix(\textcolor{keywordtype}{int}\ x,\ \textcolor{keywordtype}{int}\ y)\ \textcolor{keyword}{const};}
\DoxyCodeLine{00018\ \ \ \ \ \mbox{\hyperlink{classPixel}{Pixel}}\ getPix2(\textcolor{keywordtype}{int}\ x,\ \textcolor{keywordtype}{int}\ y)\ \textcolor{keyword}{const};}
\DoxyCodeLine{00019\ \ \ \ \ \textcolor{keywordtype}{void}\ setPix(\textcolor{keywordtype}{int}\ x,\ \textcolor{keywordtype}{int}\ y,\ \mbox{\hyperlink{classPixel}{Pixel}}\ couleur);}
\DoxyCodeLine{00020\ \ \ \ \ \textcolor{keywordtype}{void}\ dessinerRectangle(\textcolor{keywordtype}{int}\ Xmin,\ \textcolor{keywordtype}{int}\ Ymin,\ \textcolor{keywordtype}{int}\ Xmax,\ \textcolor{keywordtype}{int}\ Ymax,\ \mbox{\hyperlink{classPixel}{Pixel}}\ couleur);}
\DoxyCodeLine{00021\ \ \ \ \ \textcolor{keywordtype}{void}\ effacer\ (\mbox{\hyperlink{classPixel}{Pixel}}\ couleur);}
\DoxyCodeLine{00022\ }
\DoxyCodeLine{00023\ \ \ \ \ \textcolor{keyword}{static}\ \textcolor{keywordtype}{void}\ testRegression()}
\DoxyCodeLine{00024\ \ \ \ \ \{}
\DoxyCodeLine{00025\ \ \ \ \ \ \ \ \ \mbox{\hyperlink{classPixel}{Pixel}}\ p;}
\DoxyCodeLine{00026\ \ \ \ \ \ \ \ \ \mbox{\hyperlink{classPixel}{Pixel}}\ p2(10,20,30);\ \ \ \ }
\DoxyCodeLine{00027\ }
\DoxyCodeLine{00028\ \ \ \ \ \ \ \ \ \mbox{\hyperlink{classImage}{Image}}\ im(50,50);}
\DoxyCodeLine{00029\ \ \ \ \ \ \ \ \ p\ =\ im.getPix2(20,26);}
\DoxyCodeLine{00030\ \ \ \ \ \ \ \ \ cout<<p.r<<endl;}
\DoxyCodeLine{00031\ \ \ \ \ \ \ \ \ cout<<endl;}
\DoxyCodeLine{00032\ }
\DoxyCodeLine{00033\ \ \ \ \ \ \ \ \ im.setPix(27,12,p2);}
\DoxyCodeLine{00034\ \ \ \ \ \ \ \ \ \mbox{\hyperlink{classPixel}{Pixel}}\ p3\ =\ im.getPix2(27,12);}
\DoxyCodeLine{00035\ \ \ \ \ \ \ \ \ cout<<p3.r<<\textcolor{stringliteral}{"{},"{}}<<p3.g<<\textcolor{stringliteral}{"{},"{}}<<p3.b<<endl;}
\DoxyCodeLine{00036\ \ \ \ \ \ \ \ \ cout<<endl;}
\DoxyCodeLine{00037\ }
\DoxyCodeLine{00038\ \ \ \ \ \ \ \ \ im.dessinerRectangle(10,10,30,30,\mbox{\hyperlink{classPixel}{Pixel}}(78,36,108));}
\DoxyCodeLine{00039\ }
\DoxyCodeLine{00040\ \ \ \ \ \ \ \ \ \mbox{\hyperlink{classPixel}{Pixel}}\ p4\ =\ im.getPix2(15,20);}
\DoxyCodeLine{00041\ \ \ \ \ \ \ \ \ cout<<p4.r<<\textcolor{stringliteral}{"{},"{}}<<p4.g<<\textcolor{stringliteral}{"{},"{}}<<p4.b<<endl;}
\DoxyCodeLine{00042\ }
\DoxyCodeLine{00043\ \ \ \ \ \ \ \ \ cout<<endl;}
\DoxyCodeLine{00044\ }
\DoxyCodeLine{00045\ \ \ \ \ \ \ \ \ im.effacer(\mbox{\hyperlink{classPixel}{Pixel}}(0,0,0));}
\DoxyCodeLine{00046\ \ \ \ \ \ \ \ \ p4\ =\ im.getPix2(18,25);}
\DoxyCodeLine{00047\ \ \ \ \ \ \ \ \ cout<<p4.r<<\textcolor{stringliteral}{"{},"{}}<<p4.g<<\textcolor{stringliteral}{"{},"{}}<<p4.b<<endl;}
\DoxyCodeLine{00048\ }
\DoxyCodeLine{00049\ \ \ \ \ \};}
\DoxyCodeLine{00050\ \};}
\DoxyCodeLine{00051\ }
\DoxyCodeLine{00052\ }

\end{DoxyCode}
