Hi,

On Tue, 2012-01-24 at 08:30 +0100, Jan Sipikal wrote:
> I've blitten image ( via DirectFBImageProvider ) to surface of size 600x400 
> and I'd need to cut it's specific area into another surface. I'd like to 
> get image from surface on position [x,y]=[10,10] of size 
> [sizeX,sizeY]=[100,100] and blit it into new surface. 

IDirectFBImageProvider *provider;
IDirectFBSurface *full_image, *cut_image;
DFBRectangle cut_rect = { .x = 10, .y = 10, .w = 100, .h = 100 };

provider->RenderTo (provider, full_image, NULL);
cut_image->Blit (cut_image, full_image, &cut_rect, 0, 0);


should do what you want.


Cheers,
Andre'


_______________________________________________
directfb-users mailing list
directfb-users@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to