- Home
·
- Graphics
·
- You are supposed to have a big image and you want to retrieve a particular part of the image and wa
You are supposed to have a big image and you want to retrieve a particular part of the image and wa
You are supposed to have a big image and you want to retrieve a particular part of the image and want to use it in the application using VB
Rate You are supposed to have a big image and you want to retrieve a particular part of the image and wa
(2(2 Vote))
'Create a standard exe form
'Put a two control over the form 1> Image Control 2> Microsoft PictureClip Control
' By default the name of Image control is Image1 and the name of Picture control is PictureClip1
'Write a code in the load event of ther form mentioned below.
'Try the code with BMP files.
Public Sub Form_Load()
PictureClip1.ClipX=100 'Left corner of the part you want to see
PictureClip1.ClipY=100 'Top of the part you want to see
PictureClip1.ClipWidth=100 'Width of the part you want to see
PictureClip1.ClipHeight=100 'Height of the part.
Image1.Picture=PictureClip1.Clip
PictureClip1.Visible=False
Image1.Visible=True
End Sub
You are supposed to have a big image and you want to retrieve a particular part of the image and wa Comments
No comments yet — be the first to post one!
Post a Comment