Hello to all.

Please do not transfer the topic to another section.

There is a picture suppose 500x300px (ISP. Pixels). There is a form in Visual Studio. Made in constructor via WinAPI.

The bottom line is that the studio uses the same sizes in DIP. And my picture is in pixels.

The picture needs to be filed on the button. Yes, and the form itself must be submitted in pixels. That everything was exactly.

How to handle this?


If it is not clear said: In the FS, we drew the design of the program. Broke it into separate pictures (for inserts into buttons, etc.). How to set the size of the form in the constructor correctly so that the size of the pictures (px) and the shape (dip) match?

On the screen, the form is 500x300, but it is almost 2 times larger than the picture, which is also 500x300 enter image description here

    0