Converting Bitmap to Icon

后端 未结 1 1935
小蘑菇
小蘑菇 2021-01-04 13:12

I\'m trying to convert an image from a Bitmap to a Windows icon. This is the code.

private void btnCnvrtSave_Click(object sender, EventArgs e)
{         


        
相关标签:
1条回答
  • 2021-01-04 13:19

    This is a known issue with .Net since it doesn't have an icon encoder. See the following for possible workarounds.

    Create Valid Icon Files

    Convert Bitmap to Icon problem

    0 讨论(0)
提交回复
热议问题