Skip to content
Snippets Groups Projects
Commit 6f5b3142 authored by ABBAS IBRAHIM p2311569's avatar ABBAS IBRAHIM p2311569
Browse files

Edit Image.cpp

parent 5762c535
No related branches found
No related tags found
No related merge requests found
Pipeline #190382 passed with warnings
...@@ -69,6 +69,10 @@ Pixel p(5,42,36); ...@@ -69,6 +69,10 @@ Pixel p(5,42,36);
i.dessinerRectangle(0,0,2,2,p); i.dessinerRectangle(0,0,2,2,p);
assert((int)i.getPix(1,1).g==42); assert((int)i.getPix(1,1).g==42);
Pixel d(3,3,3); Pixel d(3,3,3);
Pixel c(6,6,6);
i.setPix(1,2)=c;
assert((int)i.getPix(1,3).r!=6);
assert((int)i.getPix(1,2).r==6);
i.effacer(d); i.effacer(d);
assert((int)i.getPix(1,1).r==3); assert((int)i.getPix(1,1).r==3);
assert((int)i.getPix(1,4).b==3); assert((int)i.getPix(1,4).b==3);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment