Denis Oliver Kropp wrote:

>> I've enabled smooth scaling using:
>>
>> DFBSurfaceRenderOptions render_options = 
>> (DFBSurfaceRenderOptions)(DSRO_SMOOTH_UPSCALE | DSRO_SMOOTH_DOWNSCALE);
>>
>> srfc->SetRenderOptions( srfc, render_options );
>> tmpsurface->StretchBlit (tmpsurface, srfc, NULL, &rect2);
> 
> Did you change blitting flags?
> 
> What formats are you using?

The blitting flags for the tmpsurface I have set to:

tmpsurface->SetBlittingFlags(tmpsurface, 
(DFBSurfaceBlittingFlags)(DSBLIT_BLEND_ALPHACHANNEL));

And for this surface I'm using the DSPF_ARGB pixelformat.

The srfc surface is a surface which I create from an image with the 
imageprovider. Here I set no blitting flags or formats:

IDirectFBImageProvider          *imageprovider;
IDirectFBSurface *imgsrfc;
DFBSurfaceDescription           imgdsc;
        
idfb->CreateImageProvider (idfb,path.c_str(), &imageprovider);
imageprovider->GetSurfaceDescription (imageprovider, &imgdsc);
idfb->CreateSurface( idfb, &imgdsc, &imgsrfc );
        
imageprovider->RenderTo (imageprovider, imgsrfc, NULL);
imageprovider->Release(imageprovider);


Thanks,

Kim

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

Reply via email to