Click here to Skip to main content
15,900,378 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: PlgBlt question Pin
Stephen Hewitt22-Apr-06 23:51
Stephen Hewitt22-Apr-06 23:51 
GeneralRe: PlgBlt question Pin
YaronNir23-Apr-06 0:07
YaronNir23-Apr-06 0:07 
GeneralRe: PlgBlt question Pin
Stephen Hewitt23-Apr-06 1:02
Stephen Hewitt23-Apr-06 1:02 
GeneralRe: PlgBlt question Pin
YaronNir23-Apr-06 1:09
YaronNir23-Apr-06 1:09 
GeneralRe: PlgBlt question Pin
Stephen Hewitt23-Apr-06 1:16
Stephen Hewitt23-Apr-06 1:16 
GeneralRe: PlgBlt question Pin
YaronNir23-Apr-06 1:00
YaronNir23-Apr-06 1:00 
GeneralRe: PlgBlt question Pin
Stephen Hewitt23-Apr-06 1:08
Stephen Hewitt23-Apr-06 1:08 
GeneralRe: PlgBlt question Pin
YaronNir23-Apr-06 1:12
YaronNir23-Apr-06 1:12 
Look at the reply by Pravin Kumar (the second one) ,

he mentioned several steps:

(i) You have to create a polygon region from the rotated vertices of the rectangle,
(ii) get its bounding rectangle using CRgn:: GetClipBox function,
(iii) create a compatible bitmap and attach it to a compatible memory DC,
(iv) paint the memory DC with the background colour of the window,
(v) draw region on memory DC using FillRgn and FrameRgn functions and finally
(vi) BitBlt the memory DC to the window DC. Detaching the bitmap from memory DC and deleting bitmap and DC go without saying

and the trick could be to create a polygon of the outcome rectangle, then copy it to memory dc after you clip it using RGB, then draw the memory dc back to window using bitblt....

this code be something right?


Ask not what your application can do for you,
Ask what you can do for your application
GeneralRe: PlgBlt question Pin
Stephen Hewitt23-Apr-06 1:20
Stephen Hewitt23-Apr-06 1:20 
GeneralRe: PlgBlt question Pin
YaronNir23-Apr-06 1:25
YaronNir23-Apr-06 1:25 
GeneralRe: PlgBlt question Pin
Stephen Hewitt23-Apr-06 1:31
Stephen Hewitt23-Apr-06 1:31 
GeneralRe: PlgBlt question Pin
YaronNir23-Apr-06 23:09
YaronNir23-Apr-06 23:09 
Questionsocket-connection oriented-winsock Pin
vanip19-Apr-06 22:50
vanip19-Apr-06 22:50 
AnswerRe: socket-connection oriented-winsock Pin
includeh1019-Apr-06 23:47
includeh1019-Apr-06 23:47 
GeneralRe: socket-connection oriented-winsock Pin
vanip20-Apr-06 16:30
vanip20-Apr-06 16:30 
QuestionRecognize the programming language used to create an EXE File Pin
sdancer7519-Apr-06 22:28
sdancer7519-Apr-06 22:28 
AnswerRe: Recognize the programming language used to create an EXE File Pin
toxcct19-Apr-06 22:40
toxcct19-Apr-06 22:40 
AnswerRe: Recognize the programming language used to create an EXE File Pin
kakan20-Apr-06 0:16
professionalkakan20-Apr-06 0:16 
AnswerRe: Recognize the programming language used to create an EXE File Pin
Stephen Hewitt23-Apr-06 0:09
Stephen Hewitt23-Apr-06 0:09 
QuestionRecognize the programming language of an EXE Files Pin
sdancer7519-Apr-06 22:28
sdancer7519-Apr-06 22:28 
AnswerRe: Recognize the programming language of an EXE Files Pin
Xing Chen19-Apr-06 23:31
Xing Chen19-Apr-06 23:31 
GeneralRe: Recognize the programming language of an EXE Files Pin
toxcct19-Apr-06 23:40
toxcct19-Apr-06 23:40 
GeneralRe: Recognize the programming language of an EXE Files Pin
Xing Chen20-Apr-06 0:20
Xing Chen20-Apr-06 0:20 
AnswerRe: Recognize the programming language of an EXE Files Pin
includeh1019-Apr-06 23:34
includeh1019-Apr-06 23:34 
Questionping Pin
Paperbackwriter19-Apr-06 22:19
Paperbackwriter19-Apr-06 22:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.