Resources | developer.brewmp.com Resources | developer.brewmp.com

Developer

resources

ImageRscData

This is a helper function that can be used to create an image resource.

data = ImageRscData("image/bmp", BytesOfFile("testapplet.bmp")) 

In the preceding example the first parameter specifies the MIME type, and the second parameter specifies the image data.

For example, the following ModRsc primitive will create an applet icon:

ModRsc { 
  name = "IDI_TESTAPPLET_ICON"
  id = 1005, 
  type = 6, 
  data = ImageRscData("image/bmp", BytesOfFile("testapplet.bmp")) 
}
See Also: BytesOfFile and ModRsc.