473,405 Members | 2,210 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

GRAPHICS Questions Please help

I have a pnlControl in which I am using as a workspace on which to drag
several pictures and drop them.
These are bitmaps that are no more than 150x150 at the largest. I keep up
with them and their related info in a class. At present no controls are
used for this.

What I need to be able to do and am not sure how:

1.) allow the user to smoothly drag the bitmap around inside this
pnlControl using the mouse.
So far I am using a hittest routine to see if inside it and then in
mouse down if it is left button
'store mouse coord
MousePT = New Point(e.X, e.Y)

then in mouse move I am doing this
myobj.left=(e.X - MousePT.X)

This sort of works but the picture doesn't keep up with the mouse.

HOw can I do this better? Remember I am painting this to the screen
with DrawImage and this is not a control.

2.) How can I offer grid support so that the image will snap in place on
grid points like a commerical app? I am not sure how to implement that.
Anyone have any code?

3.) Any links to graphics sites that would better explain how to do away
with flickering and get quick professional responding graphics would be
nice.

I am not talking large images on screen and probably a maximum of 15 and
most of the time around 1-5 images

Any help appreciated.

THanks,

Shane
Nov 20 '05 #1
0 866

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Deepak Gupta | last post by:
Dear sir , I have a problem with my cpp compiler. I have terbo(borland) 3.0 & 4.5 both compiler compiler but compling a graphics.h header file it shows an error that BGI graphics not supported in...
4
by: Martin | last post by:
I am using graphics as backgrounds for forms,buttons,labels etc. The question is: is it faster to load all graphics from files on app start or to use it embeded (places in editor during design)....
1
by: DBC User | last post by:
Hi Sharpies, This is a very basic question. I am using .Net IDE 2003 and System.Drawing.dll (1.1.4322). I wrote a simple program like this (ommitting the commons) using System.Drawing; .....
7
by: Peter Row | last post by:
Hi, I've started work on my own control some parts of which use standard controls, others I need to draw on my controls surface to get the display output I require, however.... I seem to be...
8
by: pigeonrandle | last post by:
Hi, Please pity me, i am on a dial-up connection for the first time in 5 years :( ! Does anyone know how the resulting Graphics objects differ ...? What i really mean is can someone explain it...
3
by: KiranJyothi | last post by:
Hello everybody, While I am doing the program( pasted below ), I am able to see the frame but not the rectangles. Can anyone please help me to get it done. Thanks in...
9
by: she_prog | last post by:
Dear All, I need to save the content of a panel to a bitmap. The panel can have many child controls which also need to be saved. The problem would be solved if I could have the panel saved to a...
7
by: Brian Ward | last post by:
I am trying to get to grips with some basic graphics, being new to C#. I have this code (see below) in a simple project .. when I run it 6 text strings are drawn, as I expected .. but this happens...
4
by: AWW | last post by:
XP VB 2005 drawing line graphics in a PictureBox - from a simple minded former FORTRAN programmer. The help examples have the graphics drawing code (lines & rectangles) in the PictureBox paint...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.