C# Resource images import


(Ricardo) #1

Hello,

I have some images on resouce folder on visual studio, I need import some of then for
Rhino.

I get this image with this command, and return true:

Bitmap bitmap1 = Teste.Properties.Resources.polido;

But now I need import to some position on Rhino, Any idea?

Thanks


(Dale Fugier) #2

Hi @ricardo.eira,

You haven’t provided enough information for us to understand what you are trying to do and why? Can you please ask your question again and provide more details as to what you want to do?

– Dale


(Ricardo) #3

Hello @dale ,

Basically, I need to embed some images inside my plugin, so I can then export to the viewport in rhino.

I was thinking of importing to visual studio resources, the images are fixed and will not be changed, bad idea ??

Thank you


(Dale Fugier) #4

OK, I understand this.

OK, I don’t understand this. What does “export to viewport” mean?

  • Dale

(Nathan 'jesterKing' Letwory) #5

If by exporting to viewport you mean drawing them in the viewport you can have a look at