473,396 Members | 1,810 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,396 software developers and data experts.

Read Part of a Bitmap

Hi

I would like to read a specified rectangle from an existing bitmap and draw
it in another.
Thank you,
Samuel
Aug 6 '07 #1
2 1203
Graphics.DrawImage allows you to select a source rectangle and draw it to a
Graphics object.
The Graphics object can be another bitmap or any device.

"Samuel" <sa************@ntlworld.comwrote in message
news:ub**************@TK2MSFTNGP06.phx.gbl...
Hi

I would like to read a specified rectangle from an existing bitmap and
draw it in another.
Thank you,
Samuel

Aug 6 '07 #2
Samuel wrote:
Hi

I would like to read a specified rectangle from an existing bitmap and draw
it in another.
Thank you,
Samuel
Create a Graphics object for the Bitmap that you want to draw on using
the Graphics.FromImage method. Use the DrawImage method in the Graphics
object to draw part of the image.

--
Göran Andersson
_____
http://www.guffa.com
Aug 6 '07 #3

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

Similar topics

1
by: Olaf Baeyens | last post by:
To my big suprise HorizontalResolution and VerticalResolution iof the Bitmap class are read-only! Is there any reason to this? And How do I change them? Bitmap bitmap = new...
1
by: ekey | last post by:
Hi: I want to create Bmp by fellow code,and it good work, Bitmap bitmap1 = new Bitmap((Image)iData.GetData(DataFormats.Bitmap)) but i want to cut the part of the Bmp now . How to do it ? ...
0
by: James Dean | last post by:
Ok i had a method for finding the colours in a bitmap file but its very inefficient so i will have to go through each bit individually and check its value. I will have to go through the bytes in...
0
by: CroDude | last post by:
Hi all! I have problems when writting bitmap to a byte array and after reading it back form byte to Bitmap object. What I do is this: First I throw Bitmap to a memory-stream and then I write it...
1
by: Raj Chudasama | last post by:
i have a need to load image from URL. the image is really small (gif) and i use the following code. but the code is too slow any1 have any alternative way(S)? here is the url...
3
by: Csaba Gabor | last post by:
Not sure of best place for this question... Are there any built in images within the browser that I can assume (particularly IE and FF)? More specifically, I am writing a one file webApp.php...
5
by: Ajith Menon | last post by:
I want to copy a part of the windows form into clipboard as .bmp file. The usecase is the user drags using the mouse and creates a rectangular selection any where on the form. This part has to be...
2
by: ajay_itbhu | last post by:
Hi everyone, I want to read the pixel values of 2 similar images in bitmap format like 2 continuous frame of a video for calculating the median. But i dont know how to read the pixel values of...
2
by: MrAsm | last post by:
Hi, I would like to create a form and read the pixels of the layer under my form (think of a kind of magnifier glass), to do some processing on them. Do you have any idea about how to do...
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...
0
marktang
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,...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...
0
tracyyun
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...

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.