Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
0
Help us understand the problem. What is going on with this article?
@c-yan

Win64 における SetDIBits 関数の hdc パラメータについて

More than 1 year has passed since last update.

Win64 における SetDIBits 関数の hdc パラメータについて

MSDN の SetDIBits function には以下の記述がある.

The device context identified by the hdc parameter is used only if the DIB_PAL_COLORS constant is set for the fuColorUse parameter; otherwise it is ignored.

DIB_PAL_COLORS ではない場合には hdc パラメータは無視される(is ignored)と書かれているが、実際には hdc を指定すると、6: ERROR_INVALID_HANDLE のエラーとなり、動作しない(Windows 10 April 2018 Update で確認). なので DIB_RGB_COLORS の場合には hdc に 0 を指定する必要がある.

0
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
c-yan

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
0
Help us understand the problem. What is going on with this article?