Turning off anti-aliasing when stretch-blitting.

slantz

Active member
Joined
Dec 12, 2003
Messages
37
I have a 40x40 .bmp unit image (with #FF00FF transparency) that Im stretching to 80x80 for a zoomed-in unit info view.

To do this, Im using a srcRectangle of 40x40, and a destRectangle of 80x80. However, the image is getting anti-aliased when I stretch it, such that the transparency color is getting affected, which in turn creates a purple halo around the character. (see the attached screenshot.)

My friend ran my application on his machine, which does not have a 3D card, and this didnt happen. It scaled perfectly with no anti-aliasing and no halo.

My question: Does anyone know how to turn off anti-aliasing when stretch-blutting in DirectDraw in C#?

Any help would be appreciated. Thnx in advance.

-Hiro_Antagonist
 
Back
Top