I have a 40x40 .bmp unit image (with #FF00FF transparency) that I'm stretching to 80x80 for a zoomed-in unit info view.
To do this, I'm 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 didn't 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
To do this, I'm 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 didn't 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