i need to extract a rectangular area from a graphic image displayed in a
PictureBox, to another PictureBox.
how can i do that? i would appreciate a piece of code if possible.
thanks,
ray 1 1910
using (Graphics graphics = image1.CreateGr aphics())
{
graphics.DrawIm age(image2.Imag e, new Rectangle(0, 0, 100,
100), new Rectangle(150, 150, 50, 50), GraphicsUnit.Pi xel);
}
image1 and image2 are picture boxes
"ray well" wrote: i need to extract a rectangular area from a graphic image displayed in a PictureBox, to another PictureBox.
how can i do that? i would appreciate a piece of code if possible.
thanks,
ray This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: ray well |
last post by:
hi,
i need to give the user the ability to extract a rectangular area of their
choice from a graphic displayed in a picture box to the clipboard, so they
can use it elsewhere.
say the graphic has an image of a house with a door in it and the user is
interested in the door. the rectangle is selected by placing the mouse on
the upper left corner of the door, pressing down on the left mouse button,
and draging it to the lower right...
|
by: Brian Ward |
last post by:
I am looking for a simple way to set the image transparency in a PictureBox.
I have a moving PictureBox containing a graphic image .. moving by
incrementing its Left property.
The background however shows white as the PictureBox moves but I want it
to be transparent.
The PictureBox BackColor is set to Transparent .. but no affect. I have
used PhotoShop to make the image background transparent .. again no
affect.
If I make the image a...
|
by: Joca |
last post by:
I've made a private sub that creates a graphic (using drawrectangle, string, line and stuff like that) inside a picturebox, so i wouldnt place it right on top of the form itself and also beeing able to move it around. I was aware that the graphic would disappear whenever you minimize or have windows on top it, but was under the impression that all i needed to do for it to stay there was to call the sub in the forms' paint event.
However, this...
|
by: winzone |
last post by:
I used system.drawing.graphic in C# to draw the Rectangle and Ellipse in PictureBox. In my PC and other my buddy PC show the drawing graphic and color.
But my customer PC doesn't show the drawing graphic. In my customer PC, i already installed .net Frame Work 2.0 (SP1). I don't know why missing? I write code like this...
Pen penMi = Pens.Blue;
void DrawAllMi(Graphics g)
{
g.DrawRectangle(penMi, x1 - 4, y1 - 4, 8, 8);
...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |