473,666 Members | 2,578 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

difference between Image and Bitmap

Hello Experts,

I have 3 questions about Image and Bitmap, and hope you can help me.

1. Could any one tell me the difference between Image and Bitmap? I did take
a look of the 2 classes, but seems each one contains the other. Which one
should be used in what kind of situations, and why?

2. I have an image in a Form, when i create an Image and a Bitmap object as
follows, i found their PixelFormats are different:

private Image imageTmp;
public Bitmap bmpTmp;
imageTmp = pictureBox.Imag e; //imageTmp's PixelFormat is Format24bppRgb
bmpTmp = new Bitmap((Bitmap) imageTmp); //bmpTmp's PixelFormat is
Format32bppArgb

Why they are different? What are the default settings for Image and Bitmap?

3. Can i create a Bitmap object (mainly from the image in pictureBox.Imag e)
whose PixelFormat is directly to Format24bppRbg, instead of Format32bppArbg ?
Or i can only convert the format from Format32bppArbg to Format24bppRbg? What
are the detail steps i need to take to implement this?

Please help me to answer these questions, and please recommend me some
papers which you think is useful on this topic.

Thanks so much for your help!

Victor
Nov 17 '05 #1
2 16822
Hope this helps you...

http://www.codersource.net/csharp_image_Processing.aspx

Regards,
--
Angel J. Hernández M.
MCP - MCAD - MCSD - MCDBA
http://groups.msn.com/desarrolladoresmiranda
http://www.consein.com
"VicVic" <Vi****@discuss ions.microsoft. com> escribió en el mensaje
news:8F******** *************** ***********@mic rosoft.com...
Hello Experts,

I have 3 questions about Image and Bitmap, and hope you can help me.

1. Could any one tell me the difference between Image and Bitmap? I did
take
a look of the 2 classes, but seems each one contains the other. Which one
should be used in what kind of situations, and why?

2. I have an image in a Form, when i create an Image and a Bitmap object
as
follows, i found their PixelFormats are different:

private Image imageTmp;
public Bitmap bmpTmp;
imageTmp = pictureBox.Imag e; //imageTmp's PixelFormat is Format24bppRgb
bmpTmp = new Bitmap((Bitmap) imageTmp); //bmpTmp's PixelFormat is
Format32bppArgb

Why they are different? What are the default settings for Image and
Bitmap?

3. Can i create a Bitmap object (mainly from the image in
pictureBox.Imag e)
whose PixelFormat is directly to Format24bppRbg, instead of
Format32bppArbg ?
Or i can only convert the format from Format32bppArbg to Format24bppRbg?
What
are the detail steps i need to take to implement this?

Please help me to answer these questions, and please recommend me some
papers which you think is useful on this topic.

Thanks so much for your help!

Victor

Nov 17 '05 #2
Hi Angel,

Thank you very much for your help.

Best regards,

Victor
"Angel J. Hernández M." wrote:
Hope this helps you...

http://www.codersource.net/csharp_image_Processing.aspx

Regards,
--
Angel J. Hernández M.
MCP - MCAD - MCSD - MCDBA
http://groups.msn.com/desarrolladoresmiranda
http://www.consein.com
"VicVic" <Vi****@discuss ions.microsoft. com> escribió en el mensaje
news:8F******** *************** ***********@mic rosoft.com...
Hello Experts,

I have 3 questions about Image and Bitmap, and hope you can help me.

1. Could any one tell me the difference between Image and Bitmap? I did
take
a look of the 2 classes, but seems each one contains the other. Which one
should be used in what kind of situations, and why?

2. I have an image in a Form, when i create an Image and a Bitmap object
as
follows, i found their PixelFormats are different:

private Image imageTmp;
public Bitmap bmpTmp;
imageTmp = pictureBox.Imag e; //imageTmp's PixelFormat is Format24bppRgb
bmpTmp = new Bitmap((Bitmap) imageTmp); //bmpTmp's PixelFormat is
Format32bppArgb

Why they are different? What are the default settings for Image and
Bitmap?

3. Can i create a Bitmap object (mainly from the image in
pictureBox.Imag e)
whose PixelFormat is directly to Format24bppRbg, instead of
Format32bppArbg ?
Or i can only convert the format from Format32bppArbg to Format24bppRbg?
What
are the detail steps i need to take to implement this?

Please help me to answer these questions, and please recommend me some
papers which you think is useful on this topic.

Thanks so much for your help!

Victor


Nov 17 '05 #3

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

Similar topics

15
31797
by: Anand Ganesh | last post by:
HI All, I have an Image. I want to clip a portion of it and copy to another image. How to do this? I know the bounding rectangle to clip. Any suggestions please. Thanks for your time and help. Regards
7
3393
by: Scott Schluer | last post by:
Is there a way to use the Image class to convert a color photo (GIF or JPEG) to a B&W photo? Thanks, Scott
7
11614
by: lgbjr | last post by:
Hello All, I¡¯m using a context menu associated with some pictureboxes to provide copy/paste functionality. Copying the image to the clipboard was easy. But pasting an image from the clipboard is proving to be more difficult. These pictureboxes are bound to an AccessDB. If the user wants to add an image, they select an image using an OpenFileDialog: Dim result As DialogResult = Pic_Sel.ShowDialog() If (result = DialogResult.OK) Then
15
5337
by: David Lozzi | last post by:
Howdy, I have a function that uploads an image and that works great. I love ..Nets built in upload, so much easier than 3rd party uploaders! Now I am making a public function that will take the path of the uploaded image, and resize it with the provided dimensions. My function is below. The current function is returning an error when run from the upload function: A generic error occurred in GDI+. Not sure what exactly that means. From what...
4
2558
by: John Swan | last post by:
Hello. I'm trying to create a simple program that amongst other things creates a thumbnail of an image (Bitmap) to a set size determined by the user in pixels? The problem is: All of the examples I have seen so far are in c#. Can anyone please provide reference to a c++ managed version. Thanks. John
4
2749
by: tshad | last post by:
I am trying to set up an Image authorization where you type in the value that is in a picture to log on to our site. I found a program that is supposed to do it, but it doesn't seem to work. It should put a blue and yellow box on the page with "This is a test" as part of the picture. But what I get is a broken Gif. The other problem is that I can't view the source???? The view source is disabled for this page. What causes this?
0
2874
by: benfly08 | last post by:
Hi, guys. I have a program to draw bar/pie chart based on the data i hard coded in it. However, my image comes with "BLACK" background color. I don't know how to fix this. The code snippet is below: chartGenerator.vb class: Imports System.Drawing.Imaging Public Class chartGenerator Private myImage As Bitmap
1
3792
by: rsteph | last post by:
I bought a book to help me learn to use DirectX with windows programming. It's first trying to walk me through some basic windows programming and graphics before getting into DirectX. I'm trying to expand on one of the example programs in the book but I'm having some problems. I can get a frame to appear, then an image gets randomly placed in the box. It is suppose to move right, then when it hits the edge move left; it should repeate this...
1
2783
by: CompletelyUseless | last post by:
Hi, I'm having a lot of troubles trying to build a function to figure out the difference (in color) between two images. I've tried to build something similar with the ImageMagick API, but I've had many troubles compiling a DLL from the libraries. I am also unfamiliar with the .net libraries, but I've been reading up on MSDN. I know how the basic flow of the program should go (I think), I've been having trouble executing the steps. ...
0
8785
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8560
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8644
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 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...
1
6200
isladogs
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...
0
4200
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...
0
4372
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2776
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
2
2012
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1778
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.