Sometimes you have resource which contains image and you would like to show it somewhere
static Bitmap ImageFromResource(Args _args)
{
BinData img = new BinData();
ResourceName resourceName;
ResourceNode resourceNode;
container dataContainer;
;
resourceName = resourceStr(MyResource);
if (resourceNode)
{
resourceNode.AOTload();
dataContainer = SysResource::getResourceNodeData(resourceNode);
img.setData(dataContainer);
img.setData(dataContainer);
}
return img.getData();
return img.getData();
}
No comments:
Post a Comment