Click here to Skip to main content
16,016,306 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How to get a character ascii code in VB.Net .??? Pin
MohammadAmiry29-Oct-04 7:02
MohammadAmiry29-Oct-04 7:02 
GeneralMdi form and Toolbar Pin
adnan aslam29-Oct-04 0:43
adnan aslam29-Oct-04 0:43 
GeneralMdi form and Toolbar Pin
Anonymous28-Oct-04 23:58
Anonymous28-Oct-04 23:58 
GeneralDeveloping Softwares Pin
Ashish C Chaturvedi28-Oct-04 20:13
Ashish C Chaturvedi28-Oct-04 20:13 
GeneralRe: Developing Softwares Pin
Dave Kreskowiak29-Oct-04 2:07
mveDave Kreskowiak29-Oct-04 2:07 
Generalvirtual database interface for VB.Net Pin
Member 147812928-Oct-04 11:54
Member 147812928-Oct-04 11:54 
GeneralRe: virtual database interface for VB.Net Pin
J4amieC28-Oct-04 21:56
J4amieC28-Oct-04 21:56 
QuestionSaving Grayscale JPEGs with GDI+, Is it possible? Pin
tdrice28-Oct-04 10:54
tdrice28-Oct-04 10:54 
I'm currently working on a project that sends a JPEG to an image correlation app. I load an 8-bit grayscale BMP and save it as a JPEG with the GDI+ libraries but it saves the JPEG as a 24-bit true color image. Can GDI+ write a 8-bit JPEG?

Here's my VB code snippet:

' Create the GDI+ bitmap
' from the image handle
lRes = GdipCreateBitmapFromHBITMAP(pict.Handle, 0, lBitmap)

If lRes = 0 Then
Dim tJpgEncoder As GUID
Dim tParams As EncoderParameters

' Initialize the encoder GUID
CLSIDFromString StrPtr("{557CF401-1A04-11D3-9A73-0000F81EF32E}"), tJpgEncoder

' Initialize the encoder parameters
tParams.Count = 1
With tParams.Parameter ' Quality
' Set the Quality GUID
CLSIDFromString StrPtr("{1D5BE4B5-FA4A-452D-9CDD-5DB35105E7EB}"), .GUID
.NumberOfValues = 1
.type = 4
.Value = VarPtr(quality)
End With

' Save the image
lRes = GdipSaveImageToFile(lBitmap, StrPtr(filename), tJpgEncoder, tParams)
' Destroy the bitmap
GdipDisposeImage lBitmap
GeneralSQL Date in a textbox Pin
bexarcounty28-Oct-04 10:42
bexarcounty28-Oct-04 10:42 
GeneralRe: SQL Date in a textbox Pin
Christian Graus28-Oct-04 12:11
protectorChristian Graus28-Oct-04 12:11 
Generaloracle 8i connection with VB.Net Pin
Member 147757828-Oct-04 8:56
Member 147757828-Oct-04 8:56 
GeneralRe: oracle 8i connection with VB.Net Pin
Jim Matthews28-Oct-04 9:31
Jim Matthews28-Oct-04 9:31 
GeneralRe: oracle 8i connection with VB.Net Pin
raymond13931-Oct-04 12:22
raymond13931-Oct-04 12:22 
General.NET graphical controls in VB 6 Pin
limeysontherun28-Oct-04 7:50
limeysontherun28-Oct-04 7:50 
GeneralRe: .NET graphical controls in VB 6 Pin
Dave Kreskowiak28-Oct-04 16:39
mveDave Kreskowiak28-Oct-04 16:39 
GeneralRe: .NET graphical controls in VB 6 Pin
limeysontherun31-Oct-04 7:32
limeysontherun31-Oct-04 7:32 
GeneralRe: .NET graphical controls in VB 6 Pin
Dave Kreskowiak31-Oct-04 9:48
mveDave Kreskowiak31-Oct-04 9:48 
GeneralPrint file VB.Net Pin
partt28-Oct-04 6:49
partt28-Oct-04 6:49 
GeneralRe: Print file VB.Net Pin
Dave Kreskowiak28-Oct-04 16:33
mveDave Kreskowiak28-Oct-04 16:33 
GeneralRe: Print file VB.Net Pin
Mekong River2-Nov-04 2:41
Mekong River2-Nov-04 2:41 
GeneralRe: Print file VB.Net Pin
Dave Kreskowiak2-Nov-04 8:04
mveDave Kreskowiak2-Nov-04 8:04 
GeneralRe: Print file VB.Net Pin
Mekong River2-Nov-04 13:48
Mekong River2-Nov-04 13:48 
GeneralRe: Print file VB.Net Pin
Mekong River2-Nov-04 17:24
Mekong River2-Nov-04 17:24 
GeneralVisio ActiveX Drawing Control Pin
pantera728-Oct-04 5:31
pantera728-Oct-04 5:31 
GeneralData Grid Paging Pin
rjcarney28-Oct-04 2:38
rjcarney28-Oct-04 2:38 

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.