c# - How to get a screen capture of a .Net WinForms control programmatically? -
how programmatically obtain picture of .net control?
there's method on every control called drawtobitmap. don't need p/invoke this.
control c = new textbox(); system.drawing.bitmap bmp = new system.drawing.bitmap(c.width, c.height); c.drawtobitmap(bmp, c.clientrectangle);
Comments
Post a Comment