Home > Net >  C # how to white
C # how to white

Time:09-27

C # how to get to the white
Using a picturebox

CodePudding user response:

Huh? Which come of white lace

CodePudding user response:

///
///capture image area, returning to the interception of picture
///

///
///
///
///
///
Private Image cutImage (Image SrcImage, Point pos, int cutWidth, int cutHeight)
{

Image cutedImage=null;

//initialize a bitmap object first, after the image to store
Bitmap bmpDest=new Bitmap (cutWidth, cutHeight, PixelFormat. Format32bppRgb);
Graphics g=Graphics. FromImage (bmpDest);

//rectangular definition, will be taken to capture images of the area in the image left vertex positions and the size of the intercept
A Rectangle rectSource=new Rectangle (pos. X, pos. J Y, cutWidth, cutHeight);


//rectangular definition, will draw capture images of the area to initialize the size and location of the bitmap
//rectDest shows that will turn interception area, vertices are drawn from a bitmap left, draw the interception area of the original size
A Rectangle rectDest=new Rectangle (0, 0, cutWidth cutHeight);

//the first parameter is the load you want to capture images of the object, the second and the third parameter and draw the image definition and as stated in the process of relevant properties, the fourth attribute defines the attribute value is a measure of using
G.D rawImage (SrcImage, rectDest rectSource, GraphicsUnit. Pixel);

//the image displayed on the GUI is
CutedImage=(Image) bmpDest;

G.D ispose ();

Return cutedImage;

}

CodePudding user response:

Combined a picturebox in the outside, the inside of the top left set is negative, the white lace cover

CodePudding user response:

In BorderStyle property is set to None,

CodePudding user response:

reference 4 floor youth wind response:
in BorderStyle property is set to None,

This should be able to
  •  Tags:  
  • C#
  • Related