Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void drawTransformedImageInv(Transformation * tr, int x, int y, int w, int h,const Color * img, Color * color){
- (void)color;
- int width,height;
- Color *surface=(Color*)Tablet_surface(&width,&height);
- int xx;
- int yy;
- for (xx=0;xx<width;xx++){
- for (yy=0;yy<height;yy++){
- int x_yeti=xx,y_yeti=yy;
- Transformation_applyInverse(tr,&x_yeti,&y_yeti);
- x_yeti-=x; y_yeti-=y;
- if(0<=x_yeti && x_yeti<w && 0<=y_yeti && y_yeti<h) drawPixel(xx,yy,img[x_yeti+y_yeti*w]);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement