For my test jpg image I created a 10 pixel by 10 pixel image in photoshop and just colored it in with small squares of different colors, something I tried to follow your suggestion and wrote some code (see below), but as a novice have probably mucked it up. What I want to know now is how I can convert the image to a hex byte array and print it to a text box. MsgBoxStyle.Information, "File Path Error!") MsgBox("File Path Error" & Environment.NewLine & "Type in a valid path to the file for conversion", PictureBox1.Image = Image.FromStream(New IO.MemoryStream(bytes))Ĭatch ex As System.IO.FileNotFoundException If (TextBoxImageToConvert.TextLength 0) Thenĭim bytes = My.() I have used this to find an image on my computer and display it on a picture box: Private Sub ButtonConvert_Click(sender As System.Object, e As System.EventArgs) Handles ButtonConvert.Click I want to know how to convert an image to an array of hex bytes. ![]() I am using Visual Studio 2010, writing in Visual Basic.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |