Solved

How i can manipulate a image before a DragDrop ?

Posted on 2002-03-12
7
156 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…

688 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