How I can increase the size of my image that I put in drawinto or backdrop?
put the picture in the following way:
Dim p As New Picture (listbox.Width, listbox.Height, 32)
containercontrol.DrawInto (p.Graphics, 0, 0)
canvas1.Backdrop = p
in this way the image is displayed but very small, I want to increase it.
thanks for the support
Instead of drawing your p to the canvas1.Backdrop, use the Paint event of your canvas to draw the picture using the scaling feature of drawPicture.
in the Canvas.Paint event
g.drawPicture p, 0, 0, me.width, me.height, 0, 0, p.width, p.height
you will need to increase the scope of the variable p to make it available to the paint event. Then use canvas1.invalidate to cause the drawing to occur.
I can not raise my ContainerControl image directly?
I don’t know what you mean by “raise my … image” but you should not draw to the graphics of a canvas, whether in a container control or by itself, directly. The correct way is to draw in the Paint event.