-
"Question VB.NET"
My name is Latifa from Indonesian...
I need help to finishing my final project.
I get reference from my lecturer, and I get contraints in Coding Visual Basic.Net.
This is the Code :
Code:
Private Sub OpenFileDialog1_FileOk(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles OpenFileDialog1.FileOk
Try
Dim source As Bitmap = New Bitmap(OpenFileDialog1.FileName)
Width = source.Width
Height = source.Height
Pixel = ImageProcessing.ImageProc.GetGreyscale(source)
For Me.i = 0 To Pixel.GetUpperBound(0)
Dim StringCluster As String = String.Format("ValueClusterPixel {1}:{0}", Pixel(i), i)
Debug.WriteLine(StringCluster)
Next
Catch ex As Exception
MsgBox(ex.ToString)
End Try
End Sub
Sub Save()
Try
Dim FormSave As New FormSave
Dim FileSaveName As String
FormSave.ShowDialog()
If FormSave.DialogResult = DialogResult.OK Then
Dim output As Bitmap
output = ImageProcessing.ImageProc.WriteBitmap(warnaPixel, Lebar, Tinggi)
output.Save("E:\" & FileSaveName & ".jpeg", Imaging.ImageFormat.Jpeg)
End If
Catch ex As Exception
End Try
End Sub
When I running this program, I get error " ImageProcessing.ImageProc has not been Declared"
Pixel = ImageProcessing.ImageProc.GetGreyscale(source)
output = ImageProcessing.ImageProc.WriteBitmap(warnaPixel, Width, Height)
I dont know why. . .I think the Problem is in media storage but I can't Fix it.
I want make Final Project about Unsupervised Classification For Image map to Analysis Land Use, I want Process the Image in storage media ex: C:\
and not shown in Picture box but directly in storage media and save directly too in storage media.Can you Help Me Please. . .
Thank You
Latifa
Last edited by Hack; 07-22-2010 at 07:37 AM.
Reason: Added Code Tags
-
Welcome to DevX 
The error you get makes perfect sense. ImageProcessing is not declared. What is it?
I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
Please use [Code]your code goes in here[/Code] tags when posting code.
Before posting your question, did you look here?
Got a question on Linux? Visit our Linux sister site.
Modifications Required For VB6 Apps To Work On Vista
-
"Question VB.NET"
Thanks to reply , I was very Glad because finally there's someone respond my question.
I just found out that
Pixel = ImageProcessing.ImageProc.GetGreyscale(source)
ImageProc is handler for Whitebox Image Processing API, Whitebox Geospatial Analysis Tools (GAT).
Do you know about that?And How the Plugins works?Where can I get the Plugins?
Very Appreciate your Help
Latifa
-
This is a tool to specialized for a forum such as this one.
Just Google the name, and you should find it.
Jacques Bourgeois
JBFI
http://www3.sympatico.ca/jbfi/homeus.htm
-
Thanks JBourgeois I'll try. . .
Similar Threads
-
By trains58554 in forum .NET
Replies: 7
Last Post: 12-21-2007, 01:47 AM
-
By trains58554 in forum .NET
Replies: 28
Last Post: 10-27-2007, 05:27 PM
-
By trains58554 in forum Database
Replies: 3
Last Post: 10-27-2007, 06:00 AM
-
Replies: 2
Last Post: 07-06-2006, 05:53 AM
-
By jrothlander in forum .NET
Replies: 3
Last Post: 07-01-2006, 09:55 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks