in to 4 picture box
ie. i want to load very big image !
single picture into
Part1 | Part2
|
--------------+--------------
|
Part3 | Part$
Printable View
in to 4 picture box
ie. i want to load very big image !
single picture into
Part1 | Part2
|
--------------+--------------
|
Part3 | Part$
This sample show you how to "get" 1/4 of the source image and assing it to another Picturebox:
Note:VB Code:
Picture2.Move 0, 0, Picture1.Width / 2, Picture1.Height / 2 Picture2.PaintPicture Picture1.Picture, 0, 0, Picture2.ScaleWidth, Picture2.ScaleHeight, _ 0, 0, Picture1.ScaleWidth / 2, Picture1.ScaleHeight / 2
you will have to come up with some routine that will create new Picturebox on-the-fly using Control Array or Collection (Add method).
Roy
Dont'forget to set AutoRedraw = True for all of your Pictureboxes.