CreatePatternBrush / Ellipse not working on WinMobile device but on emulator?

Based on the behavior, it's very likely that the display driver for the Tytn II doesn't support the pattern brush. It probably should tell GDI that it's not supported, but it's not. This is not unusual though - very often OEMs will not implement every feature for the display driver (alpha blending being a classic example) and not have the driver report it as unsupported.

To draw a circular part of a bitmap on the screen, I use a PatternBrush created from the bitmap to fill an ellipse. I use P/Invoke to the native functions because there seems to be a bug in CF2.0 if you use the managed functions (see here for more details: http://social.msdn.microsoft.com/forums/en-US/netfxcompact/thread/e831ea2f-039a-4b92-adb6-941954bee060/). This works perfect on every emulator (WM6, WM6.1.4, WM6.5), but if I use exactly the same on my real device (HTC Tytn II) all I get is a white circle.

The circle is not filled with the bitmap. I checked the return codes of every line on the device - everything reports no error. Replacing CreatePatternBrush with CreateSolidBrush works, than it fills the circle with a color.

Anybody an idea why the pattern brush is not working?

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions