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

How to save Data in a Grafics to a Bitmap ?

How can you save all or a portion of the Grafics object to a Image/Bitmap ?
I am try to save the Images from Cards.dll to a BitMap file.
I can read in the Images to the Grafics, but when I try this with a Bitmap
the results are Black.
Can you somehow Clip the Grafic and Paste it into the Bitmap ?

Mark Johnson, Berlin Germany
mj*****@mj10777.de
Nov 15 '05 #1
9 2618
Mark,

Take a look at this sample:

http://download.microsoft.com/downlo...ampleSetup.exe

--
Alex Yakhnin, Microsoft Embedded MVP
IntelliProg, Inc.
http://www.intelliprog.com

"Mark Johnson" <mj*****@mj10777.de> wrote in message
news:3f***********************@newsread2.arcor-online.net...
How can you save all or a portion of the Grafics object to a Image/Bitmap ? I am try to save the Images from Cards.dll to a BitMap file.
I can read in the Images to the Grafics, but when I try this with a Bitmap
the results are Black.
Can you somehow Clip the Grafic and Paste it into the Bitmap ?

Mark Johnson, Berlin Germany
mj*****@mj10777.de

Nov 15 '05 #2
I think there is a bug in that sample when it saves bitmaps with 24bit
colour depth.
I believe each line needs to be started on a 4 byte boundary, or something
along those lines, it's late at night and I haven't studied it in detail, I
just looked at the output and have experienced a similar skewed effect.

Paul Kay

"Alex Yakhnin, eMVP" <a.*******@online.att.net> wrote in message
news:uG**************@TK2MSFTNGP12.phx.gbl...
Mark,

Take a look at this sample:

http://download.microsoft.com/downlo...ampleSetup.exe
--
Alex Yakhnin, Microsoft Embedded MVP
IntelliProg, Inc.
http://www.intelliprog.com

"Mark Johnson" <mj*****@mj10777.de> wrote in message
news:3f***********************@newsread2.arcor-online.net...
How can you save all or a portion of the Grafics object to a Image/Bitmap
?
I am try to save the Images from Cards.dll to a BitMap file.
I can read in the Images to the Grafics, but when I try this with a

Bitmap the results are Black.
Can you somehow Clip the Grafic and Paste it into the Bitmap ?

Mark Johnson, Berlin Germany
mj*****@mj10777.de


Nov 15 '05 #3
Thank you, I have gotten everything to work.
- Read in the Bitmap from cards.dll
- Save as Bitmap to File
- Save ReRead Bitmap as Jpeg
- Pack Bitmap to Graphics in WinCe Size
- Save as Bitmap in WinCe Size
- Save ReRead Bitmap as Jpeg in in WinCe Size
"Alex Yakhnin, eMVP" <a.*******@online.att.net> schrieb im Newsbeitrag
news:uG**************@TK2MSFTNGP12.phx.gbl...
Mark,

Take a look at this sample:

http://download.microsoft.com/downlo...ampleSetup.exe
--
Alex Yakhnin, Microsoft Embedded MVP
IntelliProg, Inc.
http://www.intelliprog.com

"Mark Johnson" <mj*****@mj10777.de> wrote in message
news:3f***********************@newsread2.arcor-online.net...
How can you save all or a portion of the Grafics object to a Image/Bitmap
?
I am try to save the Images from Cards.dll to a BitMap file.
I can read in the Images to the Grafics, but when I try this with a

Bitmap the results are Black.
Can you somehow Clip the Grafic and Paste it into the Bitmap ?

Mark Johnson, Berlin Germany
mj*****@mj10777.de


Nov 15 '05 #4
Hi Paul,

Thanks for the input. I will take a look at the sample today and post the
results to this thread.

--
Geoff Schwab
Program Manager
Excell Data Corporation
http://msdn.com/mobility
http://msdn.microsoft.com/mobility/p...Q/default.aspx

This posting is provided "AS IS" with no warranties, and confers no rights.
"Paul Kay" <p.kayATtesco.netSPAM> wrote in message
news:uf**************@TK2MSFTNGP11.phx.gbl...
I think there is a bug in that sample when it saves bitmaps with 24bit
colour depth.
I believe each line needs to be started on a 4 byte boundary, or something
along those lines, it's late at night and I haven't studied it in detail, I just looked at the output and have experienced a similar skewed effect.

Paul Kay

"Alex Yakhnin, eMVP" <a.*******@online.att.net> wrote in message
news:uG**************@TK2MSFTNGP12.phx.gbl...
Mark,

Take a look at this sample:

http://download.microsoft.com/downlo...ampleSetup.exe

--
Alex Yakhnin, Microsoft Embedded MVP
IntelliProg, Inc.
http://www.intelliprog.com

"Mark Johnson" <mj*****@mj10777.de> wrote in message
news:3f***********************@newsread2.arcor-online.net...
How can you save all or a portion of the Grafics object to a Image/Bitmap
?
I am try to save the Images from Cards.dll to a BitMap file.
I can read in the Images to the Grafics, but when I try this with a

Bitmap the results are Black.
Can you somehow Clip the Grafic and Paste it into the Bitmap ?

Mark Johnson, Berlin Germany
mj*****@mj10777.de



Nov 15 '05 #5
Hi Paul,

I did some testing and cannot seem to reproduce this problem. I tried
images of varying sizes and saved them as 16 and 24 bit bitmaps and they
look fine in the ImageEditor on the device, IE on the device, Paint on the
PC, and Windows Picture Viewer on the PC. I don't think the 32-bit
alignment should be an issue since the bitblt automates that and that would
be the case for 16 bit images as well as 24.

Could you please give me a scenario that causes this problem, including the
size and format of the original image and what changes you made to save it
as 24-bit - I assume just changing the third parameter to
BitampFile.SaveToFile?

Thanks,
Geoff Schwab
Program Manager
Excell Data Corporation
http://msdn.com/mobility
http://msdn.microsoft.com/mobility/p...Q/default.aspx

This posting is provided "AS IS" with no warranties, and confers no rights.

"Geoff Schwab [MSFT]" <a-******@online.microsoft.com> wrote in message
news:uU**************@TK2MSFTNGP12.phx.gbl...
Hi Paul,

Thanks for the input. I will take a look at the sample today and post the
results to this thread.

--
Geoff Schwab
Program Manager
Excell Data Corporation
http://msdn.com/mobility
http://msdn.microsoft.com/mobility/p...Q/default.aspx
This posting is provided "AS IS" with no warranties, and confers no rights. "Paul Kay" <p.kayATtesco.netSPAM> wrote in message
news:uf**************@TK2MSFTNGP11.phx.gbl...
I think there is a bug in that sample when it saves bitmaps with 24bit
colour depth.
I believe each line needs to be started on a 4 byte boundary, or something
along those lines, it's late at night and I haven't studied it in
detail, I
just looked at the output and have experienced a similar skewed effect.

Paul Kay

"Alex Yakhnin, eMVP" <a.*******@online.att.net> wrote in message
news:uG**************@TK2MSFTNGP12.phx.gbl...
Mark,

Take a look at this sample:

http://download.microsoft.com/downlo...ampleSetup.exe

--
Alex Yakhnin, Microsoft Embedded MVP
IntelliProg, Inc.
http://www.intelliprog.com

"Mark Johnson" <mj*****@mj10777.de> wrote in message
news:3f***********************@newsread2.arcor-online.net...
> How can you save all or a portion of the Grafics object to a

Image/Bitmap
?
> I am try to save the Images from Cards.dll to a BitMap file.
> I can read in the Images to the Grafics, but when I try this with a

Bitmap
> the results are Black.
> Can you somehow Clip the Grafic and Paste it into the Bitmap ?
>
> Mark Johnson, Berlin Germany
> mj*****@mj10777.de
>
>



Nov 15 '05 #6
Geoff,

I just loaded a known 24bit .bmp image into 'Image Editor' where it
displayed correctly, then I saved it under a new name. Then when viewing
both images using the 'Picture' Application installed on my iPaq 22xx, the
new image is skewed, whereas the original isn't. Strangely, though, on
reloading the skewed copy to 'Image Editor', it displays correctly, as did
the original.

So it would seem the underlying problem is more complex than I originally
surmised. I still haven't looked at the code in any detail or made any
changes to it , but can see that the saved copy is smaller (45.9K 145w*160h)
than the original (68.4K 145w*160h) and therefore I'm guessing that it has
been saved as a 16 bit colour depth. Maybe the sample just isn't intended
to cope with the above scenario in it's raw state, i.e. load a 24 bit
bitmap, save it as 16 bit.

Now, the next bit of testing I've just done is even more interesting, the
Image viewer portion of the application I'm in the process of writing
displays both the original and the saved 16bit version correctly. So.....
I'm beginning to think that in fact it's the 'Picture' application that
comes installed on the new Windows Mobile 2003 Pocket PCs that doesn't
handle 16bit bitmaps correctly and that both the sample and my code do.

Therefore, (I'm testing as I'm writing this) I apologise, it seems the Image
Editor Sample is in fact fine...... but the installed (in Rom) 'Pictures'
Application, pimg.exe doesn't.... Ouch, sorry I wasted your time checking
the sample, but perhaps you'd better talk to the pimg.exe 'team'.

My apologies, it was a bit late last night (actually early this (or now
yesterday) morning) when I looked at the sample, I should have investigated
more before commenting, but I'd coincidently spent much of the day writing
bitmap saving code and had been using the pimg.exe to test the results,
thinking it must be solid.

Regards
Paul
"Geoff Schwab [MSFT]" <a-******@online.microsoft.com> wrote in message
news:uD**************@tk2msftngp13.phx.gbl...
Hi Paul,

I did some testing and cannot seem to reproduce this problem. I tried
images of varying sizes and saved them as 16 and 24 bit bitmaps and they
look fine in the ImageEditor on the device, IE on the device, Paint on the
PC, and Windows Picture Viewer on the PC. I don't think the 32-bit
alignment should be an issue since the bitblt automates that and that would be the case for 16 bit images as well as 24.

Could you please give me a scenario that causes this problem, including the size and format of the original image and what changes you made to save it
as 24-bit - I assume just changing the third parameter to
BitampFile.SaveToFile?

Thanks,
Geoff Schwab
Program Manager
Excell Data Corporation
http://msdn.com/mobility
http://msdn.microsoft.com/mobility/p...Q/default.aspx
This posting is provided "AS IS" with no warranties, and confers no rights.
"Geoff Schwab [MSFT]" <a-******@online.microsoft.com> wrote in message
news:uU**************@TK2MSFTNGP12.phx.gbl...
Hi Paul,

Thanks for the input. I will take a look at the sample today and post the
results to this thread.

--
Geoff Schwab
Program Manager
Excell Data Corporation
http://msdn.com/mobility

http://msdn.microsoft.com/mobility/p...Q/default.aspx

This posting is provided "AS IS" with no warranties, and confers no

rights.
"Paul Kay" <p.kayATtesco.netSPAM> wrote in message
news:uf**************@TK2MSFTNGP11.phx.gbl...
I think there is a bug in that sample when it saves bitmaps with 24bit
colour depth.
I believe each line needs to be started on a 4 byte boundary, or

something along those lines, it's late at night and I haven't studied it in detail,
I
just looked at the output and have experienced a similar skewed effect.
Paul Kay

"Alex Yakhnin, eMVP" <a.*******@online.att.net> wrote in message
news:uG**************@TK2MSFTNGP12.phx.gbl...
> Mark,
>
> Take a look at this sample:
>
>

http://download.microsoft.com/downlo...ampleSetup.exe
>
> --
> Alex Yakhnin, Microsoft Embedded MVP
> IntelliProg, Inc.
> http://www.intelliprog.com
>
> "Mark Johnson" <mj*****@mj10777.de> wrote in message
> news:3f***********************@newsread2.arcor-online.net...
> > How can you save all or a portion of the Grafics object to a
Image/Bitmap
> ?
> > I am try to save the Images from Cards.dll to a BitMap file.
> > I can read in the Images to the Grafics, but when I try this with a Bitmap
> > the results are Black.
> > Can you somehow Clip the Grafic and Paste it into the Bitmap ?
> >
> > Mark Johnson, Berlin Germany
> > mj*****@mj10777.de
> >
> >
>
>



Nov 15 '05 #7
Hi Mark,

Just wondering... what did you use to save bitmap as jpeg?
Native jpeglib?

--
Alex Yakhnin, Microsoft Embedded MVP
IntelliProg, Inc.
http://www.intelliprog.com

"Mark Johnson" <mj*****@mj10777.de> wrote in message
news:3f***********************@newsread2.arcor-online.net...
Thank you, I have gotten everything to work.
- Read in the Bitmap from cards.dll
- Save as Bitmap to File
- Save ReRead Bitmap as Jpeg
- Pack Bitmap to Graphics in WinCe Size
- Save as Bitmap in WinCe Size
- Save ReRead Bitmap as Jpeg in in WinCe Size
"Alex Yakhnin, eMVP" <a.*******@online.att.net> schrieb im Newsbeitrag
news:uG**************@TK2MSFTNGP12.phx.gbl...
Mark,

Take a look at this sample:

http://download.microsoft.com/downlo...ampleSetup.exe

--
Alex Yakhnin, Microsoft Embedded MVP
IntelliProg, Inc.
http://www.intelliprog.com

"Mark Johnson" <mj*****@mj10777.de> wrote in message
news:3f***********************@newsread2.arcor-online.net...
How can you save all or a portion of the Grafics object to a Image/Bitmap
?
I am try to save the Images from Cards.dll to a BitMap file.
I can read in the Images to the Grafics, but when I try this with a

Bitmap the results are Black.
Can you somehow Clip the Grafic and Paste it into the Bitmap ?

Mark Johnson, Berlin Germany
mj*****@mj10777.de



Nov 15 '05 #8
Hi Paul,

No problem, this is good information to have. There tends to be a bit of
inconsistency with the BMP "standard." From the most reliable resources I
have found, a 16 bit image (as reported by BITMAPINFOHEADER::biBitCount) is
always supposed to be 565 RGB format, whereas an image reported as 15 (not
16) bit is 555. I actually went against this standard in the sample because
all of the commercial products I tested with only supported a 16 bit 555
formatted image which is technically wrong but seems to have become the de
facto industry standard.

I don't know if this has anything to do with what you are seeing but thank
you for following up!

--
Geoff Schwab
Program Manager
Excell Data Corporation
http://msdn.com/mobility
http://msdn.microsoft.com/mobility/p...Q/default.aspx

This posting is provided "AS IS" with no warranties, and confers no rights.
"Paul Kay" <p.kayATtesco.netSPAM> wrote in message
news:OZ**************@TK2MSFTNGP09.phx.gbl...
Geoff,

I just loaded a known 24bit .bmp image into 'Image Editor' where it
displayed correctly, then I saved it under a new name. Then when viewing
both images using the 'Picture' Application installed on my iPaq 22xx, the
new image is skewed, whereas the original isn't. Strangely, though, on
reloading the skewed copy to 'Image Editor', it displays correctly, as did
the original.

So it would seem the underlying problem is more complex than I originally
surmised. I still haven't looked at the code in any detail or made any
changes to it , but can see that the saved copy is smaller (45.9K 145w*160h) than the original (68.4K 145w*160h) and therefore I'm guessing that it has
been saved as a 16 bit colour depth. Maybe the sample just isn't intended
to cope with the above scenario in it's raw state, i.e. load a 24 bit
bitmap, save it as 16 bit.

Now, the next bit of testing I've just done is even more interesting, the
Image viewer portion of the application I'm in the process of writing
displays both the original and the saved 16bit version correctly. So..... I'm beginning to think that in fact it's the 'Picture' application that
comes installed on the new Windows Mobile 2003 Pocket PCs that doesn't
handle 16bit bitmaps correctly and that both the sample and my code do.

Therefore, (I'm testing as I'm writing this) I apologise, it seems the Image Editor Sample is in fact fine...... but the installed (in Rom) 'Pictures'
Application, pimg.exe doesn't.... Ouch, sorry I wasted your time checking
the sample, but perhaps you'd better talk to the pimg.exe 'team'.

My apologies, it was a bit late last night (actually early this (or now
yesterday) morning) when I looked at the sample, I should have investigated more before commenting, but I'd coincidently spent much of the day writing
bitmap saving code and had been using the pimg.exe to test the results,
thinking it must be solid.

Regards
Paul
"Geoff Schwab [MSFT]" <a-******@online.microsoft.com> wrote in message
news:uD**************@tk2msftngp13.phx.gbl...
Hi Paul,

I did some testing and cannot seem to reproduce this problem. I tried
images of varying sizes and saved them as 16 and 24 bit bitmaps and they
look fine in the ImageEditor on the device, IE on the device, Paint on the
PC, and Windows Picture Viewer on the PC. I don't think the 32-bit
alignment should be an issue since the bitblt automates that and that would
be the case for 16 bit images as well as 24.

Could you please give me a scenario that causes this problem, including

the
size and format of the original image and what changes you made to save it as 24-bit - I assume just changing the third parameter to
BitampFile.SaveToFile?

Thanks,
Geoff Schwab
Program Manager
Excell Data Corporation
http://msdn.com/mobility

http://msdn.microsoft.com/mobility/p...Q/default.aspx

This posting is provided "AS IS" with no warranties, and confers no

rights.

"Geoff Schwab [MSFT]" <a-******@online.microsoft.com> wrote in message
news:uU**************@TK2MSFTNGP12.phx.gbl...
Hi Paul,

Thanks for the input. I will take a look at the sample today and post

the results to this thread.

--
Geoff Schwab
Program Manager
Excell Data Corporation
http://msdn.com/mobility

http://msdn.microsoft.com/mobility/p...Q/default.aspx

This posting is provided "AS IS" with no warranties, and confers no

rights.
"Paul Kay" <p.kayATtesco.netSPAM> wrote in message
news:uf**************@TK2MSFTNGP11.phx.gbl...
> I think there is a bug in that sample when it saves bitmaps with 24bit > colour depth.
> I believe each line needs to be started on a 4 byte boundary, or

something
> along those lines, it's late at night and I haven't studied it in

detail,
I
> just looked at the output and have experienced a similar skewed effect. >
> Paul Kay
>
> "Alex Yakhnin, eMVP" <a.*******@online.att.net> wrote in message
> news:uG**************@TK2MSFTNGP12.phx.gbl...
> > Mark,
> >
> > Take a look at this sample:
> >
> >
>

http://download.microsoft.com/downlo...ampleSetup.exe
> >
> > --
> > Alex Yakhnin, Microsoft Embedded MVP
> > IntelliProg, Inc.
> > http://www.intelliprog.com
> >
> > "Mark Johnson" <mj*****@mj10777.de> wrote in message
> > news:3f***********************@newsread2.arcor-online.net...
> > > How can you save all or a portion of the Grafics object to a
> Image/Bitmap
> > ?
> > > I am try to save the Images from Cards.dll to a BitMap file.
> > > I can read in the Images to the Grafics, but when I try this
with a > Bitmap
> > > the results are Black.
> > > Can you somehow Clip the Grafic and Paste it into the Bitmap ?
> > >
> > > Mark Johnson, Berlin Germany
> > > mj*****@mj10777.de
> > >
> > >
> >
> >
>
>



Nov 15 '05 #9
Geoff,

I guess then 15/16bit is a 'grey' area (pun intended)

Paul

"Geoff Schwab [MSFT]" <a-******@online.microsoft.com> wrote in message
news:eC**************@TK2MSFTNGP10.phx.gbl...
Hi Paul,

No problem, this is good information to have. There tends to be a bit of
inconsistency with the BMP "standard." From the most reliable resources I
have found, a 16 bit image (as reported by BITMAPINFOHEADER::biBitCount) is always supposed to be 565 RGB format, whereas an image reported as 15 (not
16) bit is 555. I actually went against this standard in the sample because all of the commercial products I tested with only supported a 16 bit 555
formatted image which is technically wrong but seems to have become the de
facto industry standard.

I don't know if this has anything to do with what you are seeing but thank
you for following up!

--
Geoff Schwab
Program Manager
Excell Data Corporation
http://msdn.com/mobility
http://msdn.microsoft.com/mobility/p...Q/default.aspx
This posting is provided "AS IS" with no warranties, and confers no rights. "Paul Kay" <p.kayATtesco.netSPAM> wrote in message
news:OZ**************@TK2MSFTNGP09.phx.gbl...
Geoff,

I just loaded a known 24bit .bmp image into 'Image Editor' where it
displayed correctly, then I saved it under a new name. Then when viewing
both images using the 'Picture' Application installed on my iPaq 22xx, the
new image is skewed, whereas the original isn't. Strangely, though, on
reloading the skewed copy to 'Image Editor', it displays correctly, as did the original.

So it would seem the underlying problem is more complex than I originally surmised. I still haven't looked at the code in any detail or made any
changes to it , but can see that the saved copy is smaller (45.9K 145w*160h)
than the original (68.4K 145w*160h) and therefore I'm guessing that it has been saved as a 16 bit colour depth. Maybe the sample just isn't intended to cope with the above scenario in it's raw state, i.e. load a 24 bit
bitmap, save it as 16 bit.

Now, the next bit of testing I've just done is even more interesting, the Image viewer portion of the application I'm in the process of writing
displays both the original and the saved 16bit version correctly.

So.....
I'm beginning to think that in fact it's the 'Picture' application that
comes installed on the new Windows Mobile 2003 Pocket PCs that doesn't
handle 16bit bitmaps correctly and that both the sample and my code do.

Therefore, (I'm testing as I'm writing this) I apologise, it seems the

Image
Editor Sample is in fact fine...... but the installed (in Rom) 'Pictures' Application, pimg.exe doesn't.... Ouch, sorry I wasted your time checking the sample, but perhaps you'd better talk to the pimg.exe 'team'.

My apologies, it was a bit late last night (actually early this (or now
yesterday) morning) when I looked at the sample, I should have

investigated
more before commenting, but I'd coincidently spent much of the day writing bitmap saving code and had been using the pimg.exe to test the results,
thinking it must be solid.

Regards
Paul
"Geoff Schwab [MSFT]" <a-******@online.microsoft.com> wrote in message
news:uD**************@tk2msftngp13.phx.gbl...
Hi Paul,

I did some testing and cannot seem to reproduce this problem. I tried
images of varying sizes and saved them as 16 and 24 bit bitmaps and they look fine in the ImageEditor on the device, IE on the device, Paint on the PC, and Windows Picture Viewer on the PC. I don't think the 32-bit
alignment should be an issue since the bitblt automates that and that

would
be the case for 16 bit images as well as 24.

Could you please give me a scenario that causes this problem, including the
size and format of the original image and what changes you made to
save it as 24-bit - I assume just changing the third parameter to
BitampFile.SaveToFile?

Thanks,
Geoff Schwab
Program Manager
Excell Data Corporation
http://msdn.com/mobility

http://msdn.microsoft.com/mobility/p...Q/default.aspx
This posting is provided "AS IS" with no warranties, and confers no

rights.

"Geoff Schwab [MSFT]" <a-******@online.microsoft.com> wrote in message
news:uU**************@TK2MSFTNGP12.phx.gbl...
> Hi Paul,
>
> Thanks for the input. I will take a look at the sample today and post
the
> results to this thread.
>
> --
> Geoff Schwab
> Program Manager
> Excell Data Corporation
> http://msdn.com/mobility
>

http://msdn.microsoft.com/mobility/p...Q/default.aspx >
> This posting is provided "AS IS" with no warranties, and confers no
rights.
> "Paul Kay" <p.kayATtesco.netSPAM> wrote in message
> news:uf**************@TK2MSFTNGP11.phx.gbl...
> > I think there is a bug in that sample when it saves bitmaps with 24bit > > colour depth.
> > I believe each line needs to be started on a 4 byte boundary, or
something
> > along those lines, it's late at night and I haven't studied it in
detail,
> I
> > just looked at the output and have experienced a similar skewed

effect.
> >
> > Paul Kay
> >
> > "Alex Yakhnin, eMVP" <a.*******@online.att.net> wrote in message
> > news:uG**************@TK2MSFTNGP12.phx.gbl...
> > > Mark,
> > >
> > > Take a look at this sample:
> > >
> > >
> >
>

http://download.microsoft.com/downlo...ampleSetup.exe
> > >
> > > --
> > > Alex Yakhnin, Microsoft Embedded MVP
> > > IntelliProg, Inc.
> > > http://www.intelliprog.com
> > >
> > > "Mark Johnson" <mj*****@mj10777.de> wrote in message
> > > news:3f***********************@newsread2.arcor-online.net...
> > > > How can you save all or a portion of the Grafics object to a
> > Image/Bitmap
> > > ?
> > > > I am try to save the Images from Cards.dll to a BitMap file.
> > > > I can read in the Images to the Grafics, but when I try this

with
a
> > Bitmap
> > > > the results are Black.
> > > > Can you somehow Clip the Grafic and Paste it into the Bitmap ?
> > > >
> > > > Mark Johnson, Berlin Germany
> > > > mj*****@mj10777.de
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Nov 15 '05 #10

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

Similar topics

6
by: charsh | last post by:
Hi, I using the code below to draw a text in a pictureBox1. //Start--------------------------------------------------------------- private void button1_Click(object sender, System.EventArgs e)...
12
by: yaya via DotNetMonster.com | last post by:
Hi, I have a picture box with circles and rectangles, and I wana save all the images into a jpg file, i tried pictureBox1.Image.Save(@"c:\1.jpg"); but I got and error...
2
by: TC | last post by:
I would like to save bitmaps to a file stream, but I can't get the Bitmap.Save(Stream) overload to work. If I save one bitmap to the stream, it works okay, but if I save two or more, they all...
2
by: Peter Proost | last post by:
Hi group when save a bitmap called saveBmp like this: <<<< saveBmp.Save(filename, ImageFormat.Jpeg) <<<< the bitmap gets saved with it's size propertys, so if I right click the file and...
9
by: DapDap | last post by:
I have manage to open a image into a picture box. But I have problem in Saving it into database SQL Server. How to save the image ??
1
by: WB | last post by:
Hi, I have a helper class that has a method to resize images. It takes the virtual path of an image and resize it to a specified dimension like this. public void ResizeImageTest(string...
1
by: Stedak | last post by:
I have the following class I use to save Tiff's. The problem I have with it is that the final size of the images are very large. If we scan directly to a file the final tiff may be 600-900 kb.s but...
3
by: SveinErik | last post by:
Hi, I'm trying to find a method to save bmp, jpg and png files as ico files, 16x16 size. I have managed to convert and save bmp files to icon, but only in 32x32 size. I can't figure out how to save...
13
by: Joe | last post by:
does anyone know why this source code throws an error?? Dim myBitmap As System.Drawing.Bitmap Dim myGraphics As Graphics myBitmap = New System.Drawing.Bitmap(fileName:="C:\test.tif")...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.