Home > Software engineering >  What method can let the Picture1 shows abnormity pictures?
What method can let the Picture1 shows abnormity pictures?

Time:11-08

For example, I draw a three-dimensional rectangle in the Picture1 control, and then let the Picture1 controls only show three-dimensional shape of cuboid, all other controls are hidden,
How to deal with, please? Thank you very much!

CodePudding user response:

The up
The up
up

CodePudding user response:

Can use SetWindowRgn () the API function,

API:
CreateRectRgn, CreateRoundRectRgn,
CreatePolygonRgn, CreatePolyPolygonRgn,... And so on,
And: CombineRgn, this API is used to combine multiple regions into a regional,

CodePudding user response:

Adjust the PictureBox Appearance, BackColor, BorderStyle property, it is ok to let him do not display frame;

CodePudding user response:

Should be able to control Region attribute

CodePudding user response:

Draw a three-dimensional rectangle and a plane figure, there is no problem with the Picture1 control show that the size of the picture according to you adjust the Picture1 control the width and height,
Picture1. AutoRedraw=0 'is displayed in 3 d sexy, 0 - no, 1 - is
Picture1. BackColor=& amp; HFFFFFF 'background color
Picture1. BorderStyle=0 'border style' 0 - without borders, 1 - have border
Picture1. Height=0 'controls Height, can be set and highly consistent picture
Picture1. Width=0 'control Width, can be set in accordance with image Width
Picture1. Picture=LoadPicture (" D:/Documents/Pictures/123 JPG ") 'load display images

CodePudding user response:

refer to the second floor a toast to invite the bright moon response:
can use SetWindowRgn () the API function,

Then I try
  • Related