Quantcast
Channel: Grasshopper - McNeel Forum
Viewing all articles
Browse latest Browse all 39513

Import Image using VB.net component

$
0
0

@pavel.tomek wrote:

Hello,
I am trying to recreate the native component “Import Image” in my custom VB.net component to import image as colored mesh.
I managed to read the pixels from the original image:
Dim logo As New Drawing.Bitmap(ImagePath)
For i As Integer = 0 To logo.Width - 1
For j As Integer = 0 To logo.Height - 1
Dim PixelCol As Drawing.Color = logo.GetPixel(i, j)
Next
Next
However, I am not able to create the mesh (Delaunay.solver is very slow). Please, what is the most efficient way to turn the vertices and colors into a mesh in the same way as the component Import Image does it?

Posts: 3

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 39513

Trending Articles