Acesso de imaged DLL passo-a-passo c/imagnes de meu esquema,que estou fazendo de errado? [英] Acesso de imagens da DLL passo-a-passo c/ imagnes de meu esquema,o que estou fazendo de errado?

查看:69
本文介绍了Acesso de imaged DLL passo-a-passo c/imagnes de meu esquema,que estou fazendo de errado?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Primeiro,图像的原始投影

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Monto a Dll

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Mudo para public no Resources

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Adiciona作为DLL Tenha的quero图像...

 

 

 

 

 

 

 

 

 

 

 

 

 

Daí ;,将Dll com解释为Modificaçõ es que fiz.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Salvo

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Faç oa指ncia p/minha DLL          b   b               nbsp; bsp               nbsp; b >

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Apó s ter feito isso,作为est图像或o desturo dessa DLL的图像,是否可以用Windons形式制成?

解决方案

那并不容易,我没有对其进行测试,但是您可以尝试将其放在DLL的类中

公共ReadOnly属性MyImages(ByVal名称作为字符串)作为位图
    得到
      返回DirectCast(My.Resources.ResourceManager.GetObject(name),位图)
    结束获取
  结束属性

从未测试过,仅基于我对资源所做的一些事情.

 


Primeiro,inicio meu projeto de Dll de imagens

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Monto a Dll

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Mudo para public no Resources

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Adiciona as imagens que quero que a DLL tenha...

 

 

 

 

 

 

 

 

 

 

 

 

 

Daí,construo a Dll com as modificações que fiz.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Salvo

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Faço a referência p/ minha DLL                                                                    

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Após ter feito isso ,como acesso as imagens que estão dentro dessa DLL,para usar elas em Picture Box do meu Windons Form?

解决方案

That is not easy, I did not test it but you can try to put this in the class in your DLL

  Public ReadOnly Property MyImages(ByVal name As String) As Bitmap
    Get
      Return DirectCast(My.Resources.ResourceManager.GetObject(name), Bitmap)
    End Get
  End Property

Never tested, just based on some things I've done with the resources.

 


这篇关于Acesso de imaged DLL passo-a-passo c/imagnes de meu esquema,que estou fazendo de errado?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆