|
-
Aug 30th, 2000, 01:35 AM
#1
Thread Starter
Junior Member
Hi there !
Anyone can help me.
Is there any method to load specific part of image file and put it into Image or PictureBox.
Thanks
Vbkids
-
Aug 30th, 2000, 01:57 AM
#2
Frenzied Member
what exactly do you mean "part" of a image?
NXSupport - Your one-stop source for computer help
-
Aug 30th, 2000, 05:34 AM
#3
New Member
Using paintpicture you can set the destination coordinates,width and height of the graphics being applied and the source coordinates, width and height.
Ergo, you can grab a rectangular section of graphic from on picturebox and place it in another picture box (or straight onto the form).
Look up .paintpicture in your help files and see if that does the trick.
Give me five lines written by the most honourable of men, and I shall find in them an excuse to hang him. - Cardinal Richelieu
Ben Stappleton
VB6E SP4
-
Aug 30th, 2000, 06:21 AM
#4
transcendental analytic
If you don't need to stretch the image from it's original size, you should use bitblt api, it's faster
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Sep 7th, 2000, 07:54 AM
#5
Thread Starter
Junior Member
What I really want to know is that
I don't want to use:
Image1.Picture = LoadPicture("...")
Picture1.PaintPicture Image1.Picture,....
I just want to load picture and use it without middle control. And I don't want to load all picture just some part for example the middle part of the image.
-------
| |
| |
-------
Wish more help
Thanks in advance
vbkids 
-
Sep 12th, 2000, 08:51 AM
#6
transcendental analytic
You have to load the whole picture since the data is stored in a byte array. Maybe you could make it load just the horizontal section that is part of the picture but that's a hard thing to do. I guess you won't win much time if you don't have a huge bitmap which is very vertically excentric.
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Sep 18th, 2000, 06:51 AM
#7
Thread Starter
Junior Member
Thanks for all
Thanks for all of your who have tried to show me the way.
All of your comment are very useful to me.
And finally from what I get I can find the solution for what I really want in MSDN 
Good Luck!
vbkids
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|