[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

José M. Guisado

2/16/2006 5:10:00 PM

Hi all,

Does anybody know how can I obtain a "Bitmap" container from an image
stored as a resource?

Any help would be really appreciated, thanks in advance!!

Jose


2 Answers

David Pokluda

2/16/2006 6:05:00 PM

0

This is the method I am using for this:

public static Image getImageFromResource(str _name)
{
ResourceNode resourceNode = SysResource::getResourceNode(_name);
container nodeData;
;
if (resourceNode == null)
return null;

resourceNode.AOTload();
nodeData = SysResource::getResourceNodeData(resourceNode);

return new Image(nodeData);
}

Regards,
David.

"JMG" <jmglozano@terra.es> wrote in message
news:OG5W8txMGHA.3460@TK2MSFTNGP15.phx.gbl...
> Hi all,
>
> Does anybody know how can I obtain a "Bitmap" container from an image
> stored as a resource?
>
> Any help would be really appreciated, thanks in advance!!
>
> Jose
>


José M. Guisado

2/21/2006 9:56:00 AM

0

It works, thanks a lot ;-)

"David Pokluda" <dpokluda@discussions.microsoft.com> escribió en el mensaje
news:ei1GDOyMGHA.2276@TK2MSFTNGP15.phx.gbl...
> This is the method I am using for this:
>
> public static Image getImageFromResource(str _name)
> {
> ResourceNode resourceNode = SysResource::getResourceNode(_name);
> container nodeData;
> ;
> if (resourceNode == null)
> return null;
>
> resourceNode.AOTload();
> nodeData = SysResource::getResourceNodeData(resourceNode);
>
> return new Image(nodeData);
> }
>
> Regards,
> David.
>
> "JMG" <jmglozano@terra.es> wrote in message
> news:OG5W8txMGHA.3460@TK2MSFTNGP15.phx.gbl...
>> Hi all,
>>
>> Does anybody know how can I obtain a "Bitmap" container from an image
>> stored as a resource?
>>
>> Any help would be really appreciated, thanks in advance!!
>>
>> Jose
>>
>
>