Click here to Skip to main content
16,005,149 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionhow to read .ini file in vb .net 2005 Pin
meet_Poo2-Apr-07 19:22
meet_Poo2-Apr-07 19:22 
GeneralRe: how to read .ini file in vb .net 2005 Pin
Nilesh Hapse2-Apr-07 19:52
Nilesh Hapse2-Apr-07 19:52 
GeneralRe: how to read .ini file in vb .net 2005 Pin
meet_Poo2-Apr-07 22:20
meet_Poo2-Apr-07 22:20 
Questionin .net 2005 is validation controls available for desktop application Pin
meet_Poo2-Apr-07 18:54
meet_Poo2-Apr-07 18:54 
AnswerRe: in .net 2005 is validation controls available for desktop application Pin
Kevin McFarlane3-Apr-07 0:28
Kevin McFarlane3-Apr-07 0:28 
GeneralRe: in .net 2005 is validation controls available for desktop application Pin
meet_Poo3-Apr-07 2:18
meet_Poo3-Apr-07 2:18 
GeneralRe: in .net 2005 is validation controls available for desktop application Pin
Dave Kreskowiak3-Apr-07 4:32
mveDave Kreskowiak3-Apr-07 4:32 
Questionhow to get the image drawn using e.Graphics.DrawImage fuction Pin
PowerStorm2-Apr-07 15:27
PowerStorm2-Apr-07 15:27 
Ok so i made a picturebox, and i used the e.graphics.drawimage method to draw an image onto in, now i want that image to be stored into bitmap object. so i can save it into a file.

********************
Private Sub picturebox3_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles picturebox3.Paint
Dim brt As Single = hbarBrightness.Value / 1000
Dim image_attr As New Imaging.ImageAttributes
Dim cm As Imaging.ColorMatrix = New Imaging.ColorMatrix(New Single()() { _
New Single() {brt, 0.0, 0.0, 0.0, 0.0}, _
New Single() {0, brt, 0.0, 0.0, 0.0}, _
New Single() {0.0, 0.0, brt, 0.0, 0.0}, _
New Single() {0.0, 0.0, 0.0, 1.0, 0.0}, _
New Single() {0.0, 0.0, 0.0, 0.0, 1.0}})
Debug.WriteLine(brt)
Dim myrect As New RectangleF(0.0F, 0.0F, picturebox3.Width, picturebox3.Height)

Dim rect As Rectangle = Rectangle.Round(myrect)
Dim wid As Integer = b.Width
Dim hgt As Integer = b.Height

image_attr.SetColorMatrix(cm)
e.Graphics.DrawImage(PictureBox1.Image.Clone, rect, 0, 0, wid, hgt, GraphicsUnit.Pixel, image_attr)
end sub
******************

so how i get the image drawn at location to be saved into a bitmap object?





AnswerRe: how to get the image drawn using e.Graphics.DrawImage fuction Pin
Christian Graus2-Apr-07 17:42
protectorChristian Graus2-Apr-07 17:42 
AnswerRe: how to get the image drawn using e.Graphics.DrawImage fuction Pin
Dave Kreskowiak3-Apr-07 4:29
mveDave Kreskowiak3-Apr-07 4:29 
Questionvalidating empty text boxes????? Pin
abbss.gaurav2-Apr-07 15:14
abbss.gaurav2-Apr-07 15:14 
AnswerRe: validating empty text boxes????? Pin
Christian Graus2-Apr-07 17:43
protectorChristian Graus2-Apr-07 17:43 
QuestionRTF text into Access database Pin
freefika2-Apr-07 10:23
freefika2-Apr-07 10:23 
AnswerRe: RTF text into Access database Pin
Dave Kreskowiak3-Apr-07 4:02
mveDave Kreskowiak3-Apr-07 4:02 
QuestionCan vb delcare a var like this? Pin
astcws2-Apr-07 10:18
astcws2-Apr-07 10:18 
AnswerRe: Can vb delcare a var like this? Pin
nlarson112-Apr-07 10:55
nlarson112-Apr-07 10:55 
AnswerRe: Can vb delcare a var like this? Pin
Dave Kreskowiak2-Apr-07 11:07
mveDave Kreskowiak2-Apr-07 11:07 
AnswerRe: Can vb delcare a var like this? Pin
astcws3-Apr-07 0:07
astcws3-Apr-07 0:07 
GeneralRe: Can vb delcare a var like this? Pin
Dave Kreskowiak3-Apr-07 3:55
mveDave Kreskowiak3-Apr-07 3:55 
QuestionPrinter Problem Pin
Anybloodyid2-Apr-07 10:07
Anybloodyid2-Apr-07 10:07 
AnswerRe: Printer Problem Pin
Dave Kreskowiak2-Apr-07 11:03
mveDave Kreskowiak2-Apr-07 11:03 
GeneralRe: Printer Problem Pin
Anybloodyid2-Apr-07 11:33
Anybloodyid2-Apr-07 11:33 
GeneralRe: Printer Problem Pin
Dave Kreskowiak3-Apr-07 4:21
mveDave Kreskowiak3-Apr-07 4:21 
GeneralRe: Printer Problem Pin
Anybloodyid3-Apr-07 7:24
Anybloodyid3-Apr-07 7:24 
Questionextra references [modified] Pin
nlarson112-Apr-07 8:07
nlarson112-Apr-07 8:07 

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.