Click here to Skip to main content
15,922,145 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Timer Function Pin
Dave Kreskowiak29-Jul-04 6:04
mveDave Kreskowiak29-Jul-04 6:04 
GeneralWIA called in VB6 Pin
PLTEH28-Jul-04 16:17
PLTEH28-Jul-04 16:17 
GeneralRe: WIA called in VB6 Pin
Dave Kreskowiak29-Jul-04 5:50
mveDave Kreskowiak29-Jul-04 5:50 
GeneralRe: WIA called in VB6 Pin
PLTEH29-Jul-04 15:57
PLTEH29-Jul-04 15:57 
GeneralRe: WIA called in VB6 Pin
Dave Kreskowiak30-Jul-04 1:10
mveDave Kreskowiak30-Jul-04 1:10 
GeneralAccessing MIDI in VB Pin
Kevnar27-Jul-04 20:04
Kevnar27-Jul-04 20:04 
GeneralCreating a Tiff that is Fax Ready Pin
gthompson200527-Jul-04 16:35
gthompson200527-Jul-04 16:35 
GeneralRe: Creating a Tiff that is Fax Ready Pin
Dave Kreskowiak28-Jul-04 7:10
mveDave Kreskowiak28-Jul-04 7:10 
Well, I only have about 10 minutes per day (if I'm lucky!) to do this anymore. My life got very busy with a new job and my girlfriend recovering from reconstructive knee surgery.

First, you don't use g.Save(). This doesn't save the image, only the state of the Graphics container. In your case, it's useless...

Second, I'd have to do some research on this, but it would appear that at least one of the image parameters being written to the .TIFF file are wrong or not supported by the Fax software .TIFF parser. What I mean is something like the Image Color Depth or Pixel Format may not be supported.

I say this because your creating a Bitmap object using just the height and width parameters, which defaults to a 32-bits per pixel format that supports 8 bits for Red, Green, Blue, and an Alpha channel.

Now, when you go to save the Bitmap object, that image information is stored with the image in the .TIFF file. But, I don't think the correct, or should I say universaly compatible, image parameter information is being written to the file. Fax software might only support an 8-bit per pixel or maybe even a 1-bit per pixel format. So...

What I think you have to do is experiment with creating your Bitmap object using the Height, Width, and PixelFormat parameters. Something like:
Dim b As Bitmap = New Bitmap(800, 1100, PixelFormat.Format1bppIndexed)

You might also have to alter the Palette array and supply the correct colors to the Bitmap object if the PixelFormat is an -Indexed format. In the case of Format1bppIndex, you'd have to supply 2 colors (32-bit ARGB values) to the Palette array, maybe 0x00000000 and 0xFFFFFFFF for black and white colors.

A good way to find out the information you need would be to load a .TIFF file generated by the Fax software into the Bitmap object and look at its property values in the debugger.


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: Creating a Tiff that is Fax Ready Pin
gthompson200528-Jul-04 15:04
gthompson200528-Jul-04 15:04 
GeneralDataGrid RowHeaderClick Event Pin
ColdWaterBlue27-Jul-04 10:34
ColdWaterBlue27-Jul-04 10:34 
GeneralRe: DataGrid RowHeaderClick Event Pin
Syed Abdul Khader30-Jul-04 0:20
Syed Abdul Khader30-Jul-04 0:20 
GeneralListView: Display only txt files Pin
Brad Fackrell27-Jul-04 7:16
Brad Fackrell27-Jul-04 7:16 
GeneralRe: ListView: Display only txt files Pin
Dave Kreskowiak27-Jul-04 10:11
mveDave Kreskowiak27-Jul-04 10:11 
GeneralRe: ListView: Display only txt files Pin
Brad Fackrell27-Jul-04 10:50
Brad Fackrell27-Jul-04 10:50 
GeneralOracleClient Pin
beowulfagate26-Jul-04 17:54
beowulfagate26-Jul-04 17:54 
QuestionHow can I put the MMC snap-in in a Web browser? Pin
zzzhouzhou26-Jul-04 16:38
zzzhouzhou26-Jul-04 16:38 
GeneralMultiple Bitmaps Pin
maykut209926-Jul-04 14:55
maykut209926-Jul-04 14:55 
GeneralRe: Multiple Bitmaps Pin
Dave Kreskowiak27-Jul-04 7:01
mveDave Kreskowiak27-Jul-04 7:01 
GeneralRe: Multiple Bitmaps Pin
maykut209928-Jul-04 13:51
maykut209928-Jul-04 13:51 
GeneralRe: Multiple Bitmaps Pin
Dave Kreskowiak28-Jul-04 14:16
mveDave Kreskowiak28-Jul-04 14:16 
GeneralRe: Multiple Bitmaps Pin
maykut209928-Jul-04 14:21
maykut209928-Jul-04 14:21 
GeneralRe: Multiple Bitmaps Pin
Aaron Eldreth29-Jul-04 17:10
Aaron Eldreth29-Jul-04 17:10 
GeneralRe: Multiple Bitmaps Pin
maykut209929-Jul-04 17:21
maykut209929-Jul-04 17:21 
Generalquestions in vb.net Pin
ahmad_yossef26-Jul-04 0:35
ahmad_yossef26-Jul-04 0:35 
GeneralRe: questions in vb.net Pin
Dave Kreskowiak27-Jul-04 3:06
mveDave Kreskowiak27-Jul-04 3:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.