Convert bitmap to icon

前端 未结 4 1151
闹比i
闹比i 2021-02-18 18:01

I am trying to convert bitmap into icon. But there is some error as the resultant file is just blank.

private void btnCnvrtSave_Click(object sender, EventArgs e)         


        
4条回答
  •  逝去的感伤
    2021-02-18 18:14

    Also, this SO question links to how to convert an image to an icon, which may lead you in the right direction.

    Notice, however, that the code as written needs to be modified to avoid a handle leak. But the solution is also linked in that question.

提交回复
热议问题