/// <summary> /// Returns current texture as a Bitmap. Option to specify size. /// </summary> /// <param name="pathBIOGame">Path to BIOGame.</param> /// <param name="size">OPTIONAL: Maximum size on any dimension. Defaults to max.</param> /// <returns>Bitmap image of texture.</returns> public Bitmap GetImage(string pathBIOGame, int size = -1) { ITexture2D tex2D = Textures[0]; return(tex2D.GetImage(size)); }