Solved

How i can manipulate a image before a DragDrop ?

Posted on 2002-03-12
7
149 Views
Last Modified: 2010-05-02
I have a PictureBox control, where i Drag a image, but i need chenge the size or i need move to other coords...How i do that...
0
Comment
Question by:turquito
7 Comments
 
LVL 22

Expert Comment

by:rspahitz
ID: 6857172
Try investigating the PaintPicture method of the Picturebox.  This will let you take a picture and "paint" all or part of it to any location, optionally stretched or inverted.
0
 

Expert Comment

by:GuruVB
ID: 6860172
use BitBit API Calll :)
0
 
LVL 22

Expert Comment

by:rspahitz
ID: 6860913
Yes, the PaintPicture method essentially does the BitBlt function in a safer "wrapper"; however, BitBlt can work across windows if you need that functionality.
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Author Comment

by:turquito
ID: 6878021
May i do wrong the question, but i try again, explain you what i want...

When i finish the DragDrop i would like manipulate this image,  change the size, move again to ohetr coords or eliminate, How i do that ?
0
 
LVL 22

Accepted Solution

by:
rspahitz earned 100 total points
ID: 6894306
Again, PaintPicture does all of that for you.

Syntax:

ReceivingContainer.PaintPicture SourceContainer.Picture, DestinationLeft, DestinationTop, DestinationWidth, DestinationHeight, SourceLeft, SourceTop, SourceWidth, SourceHeight, ImageManipulationCodes

To change location, use a different DestinationLeft and DestinationTop.

To change size, use a different DestinationWidth and DestinationHeight
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7618226
Hi turquito,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept rspahitz's comment(s) as an answer.

turquito, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 
LVL 1

Expert Comment

by:kodiakbear
ID: 7665626
Moving to the paq

kb
Experts Exchange Moderator
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now