vb controlling other software from grasshopper

Hi
Is there some way to send and receive data from grasshopper to ex. paint in windows? Make it open a file, add a line then save and close?

Thanks
  • up

    David Rutten

    If you're looking to do some basic bitmap stuff, wouldn't it be much easier to use GDI+ to do it?

    If you want to draw a line in a bitmap, how about the following:

    Dim bmp As New Bitmap("C:\somewhere\blahblah\image.bmp")

    Dim G As Graphics = Graphics.FromImage(bmp)

    G.DrawLine(Pens.Black, 10, 10, 100, 70)

    bmp.Save("C:\somewhere\blahblah\image.bmp")

    bmp.Dispose()

    G.Dispose()

    Different applications have different APIs, so I can definitely see the point of remoting into Photoshop, but Paint.exe.... 

    --

    David Rutten

    david@mcneel.com

    Poprad, Slovakia

    2