Solved

How i can manipulate a image before a DragDrop ?

Posted on 2002-03-12
7
152 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
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

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…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

791 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