开发者

How to create a UserControl that is a bitmap in WPF?

I was the functionality of a UserControl but I want it to look lik开发者_运维技巧e a bitmap. How can I do this in WPF?


What about the Image control? What exactly do you want? How does a bitmap look like? Can you write more than one sentence?


You can do the following

  1. Download source of the Bitmap class that will snap to device pixels from here
  2. Rewrite it a little bit.
    a. Set UserControl instead of UIElement as it's parent
    b. Rename MeasureCore to MeasureOverride

I hope that will become the thing you need.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜