[Closed] Help with .net datagridview
I am currently working on a script that can break a high res render down into more manageable chunks e.g 3×3, 4×4 or 5×5 grid.
Creating a scripted region render is quite easily done, however I would like to add a more visual functionality whereby I can screengrab the viewport and apply a visual grid over this and the user able to select custom regions to be rendered.
I was thinking of using the datagridview object, and somehow applying the viewport screen grab as a background? First of all I haven’t really done much work with the datagridview object and I am a little uncertain if this really is the best route to take in this instance.
Any guidance would be much appreciated.
Regards,
D.
You can split your render into strips using the split scanline rendering mode in backburner, or if you use Deadline you can do Tiles rendering which does exactly what you are describing.
I would definitely just use custom painting on a control. I think DataGridView, while a possibility, is asking for trouble in this case.
I would definitely just use custom painting on a control. I think DataGridView, while a possibility, is asking for trouble in this case.
Thanks lo for the reply, could you elaborate a little on “use custom painting on a control”?
If I understand correctly you want to draw a grid over an image. So use a control such as a picturebox, and register to it’s paint event. In this event draw your grid using GDI+ drawing methods such as System.Drawing.Graphics.DrawLine.