CodePudding user response:
Study time is not long, personal understanding, reference,This stuff with c # winform PictureBox image components do certainly couldn't see,
Winform, how to have to have a class, such as
Public class DraggableObject
{
Public string Id {get; The set; }
Public int prim_X {get; The set; }
Public int prim_Y {get; The set; }
Public Rectangle Region {get; The set; }
Public Bitmap Setimage {get; The set; }
Public void OnPaint (PaintEventArgs e)
{
Um participant raphics. DrawImage (SetImage, Region);
}
}
Public List
Record some location parameters, increase the image List, add, delete the image List. Remove,
Update, delete, add diagram or position changed, refresh container,
Private void xx_Paint (object sender, PaintEventArgs e)
{
Foreach (DraggableObject item in DesignObjects)
{
Item. OnPaint (e);
}
}
However, this kind of things sure c #, or WPF, or try unity3D