VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



You are supposed to have a big image and you want to retrieve a particular part of the image and wa

by Bhuwan Chand Joshi (69 Submissions)
Category: Graphics
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Mon 2nd July 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)

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



'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

Download this snippet    Add to My Saved Code

You are supposed to have a big image and you want to retrieve a particular part of the image and wa Comments

No comments have been posted about You are supposed to have a big image and you want to retrieve a particular part of the image and wa. Why not be the first to post a comment about You are supposed to have a big image and you want to retrieve a particular part of the image and wa.

Post your comment

Subject:
Message:
0/1000 characters