开发者

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

开发者 https://www.devze.com 2023-02-03 17:11 出处:网络
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 lik

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

精彩评论

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

关注公众号