Click here to Skip to main content
15,909,742 members
Home / Discussions / Graphics
   

Graphics

 
GeneralRe: very important Pin
Smithers-Jones13-Feb-09 0:15
Smithers-Jones13-Feb-09 0:15 
GeneralRe: very important Pin
Dave Kreskowiak13-Feb-09 5:12
mveDave Kreskowiak13-Feb-09 5:12 
Questionrefresh device context? Pin
Member 19061757-Feb-09 10:53
Member 19061757-Feb-09 10:53 
AnswerRe: refresh device context? Pin
plexted1-Nov-09 2:35
plexted1-Nov-09 2:35 
QuestionConvert PCL to image Pin
Cosmin Ciuraru29-Jan-09 6:16
Cosmin Ciuraru29-Jan-09 6:16 
QuestionTranslate vertext in shader Pin
Member 445625228-Jan-09 19:49
Member 445625228-Jan-09 19:49 
Questioncan not run DirectX sdk samples Pin
chandrapal27-Jan-09 21:52
chandrapal27-Jan-09 21:52 
QuestionScaling Rotated Points Pin
Richard Blythe19-Jan-09 6:12
Richard Blythe19-Jan-09 6:12 
I'm developing a vector graphics app and I'm trying to find the most efficient way to scale a rotated shape. As an example, lets say the user adds a rectangular shape to the drawing surface. Once they rotate the shape to, say 45 degrees, how can I most effeciently perform scaling once they decide to resize the shape?
My current solution is to get the amount of pixels the mouse has moved, then rotate the shape back to 0 degrees, then offset the points by the delta amount, then rotate the points back to the current rotation. I don't think this is the best method because if the user has created a complex polygon and rotates it, I may end performing thousands of calculations!

Can anybody help me?

My code this week has no errors. But it's Monday morning and I haven't got out of bed.

GeneralRe: Scaling Rotated Points Pin
Luc Pattyn19-Jan-09 6:29
sitebuilderLuc Pattyn19-Jan-09 6:29 
GeneralRe: Scaling Rotated Points Pin
Richard Blythe19-Jan-09 6:41
Richard Blythe19-Jan-09 6:41 
GeneralRe: Scaling Rotated Points Pin
Luc Pattyn19-Jan-09 6:50
sitebuilderLuc Pattyn19-Jan-09 6:50 
GeneralRe: Scaling Rotated Points Pin
Mark Churchill28-Jan-09 19:59
Mark Churchill28-Jan-09 19:59 
AnswerRe: Scaling Rotated Points Pin
Dan20-Jan-09 21:53
Dan20-Jan-09 21:53 
QuestionMultiple windows with OpenGL initialized Pin
Nishad S19-Jan-09 2:15
Nishad S19-Jan-09 2:15 
QuestionHow do I Display a 2D array as an image in a MDI using MFC Pin
Darryl Bryk15-Jan-09 14:11
Darryl Bryk15-Jan-09 14:11 
AnswerRe: How do I Display a 2D array as an image in a MDI using MFC Pin
Baltoro25-Jan-09 10:07
Baltoro25-Jan-09 10:07 
AnswerRe: How do I Display a 2D array as an image in a MDI using MFC Pin
Darryl Bryk26-Jan-09 13:10
Darryl Bryk26-Jan-09 13:10 
QuestionDirectShow Video capturing Pin
Hadi Dayvary14-Jan-09 10:27
professionalHadi Dayvary14-Jan-09 10:27 
QuestionopenGL SwapBuffers Pin
Nishad S13-Jan-09 22:11
Nishad S13-Jan-09 22:11 
AnswerRe: openGL SwapBuffers Pin
Dan14-Jan-09 9:07
Dan14-Jan-09 9:07 
GeneralRe: openGL SwapBuffers Pin
Nishad S14-Jan-09 17:41
Nishad S14-Jan-09 17:41 
GeneralRe: openGL SwapBuffers Pin
Dan14-Jan-09 20:40
Dan14-Jan-09 20:40 
GeneralRe: openGL SwapBuffers Pin
Nishad S14-Jan-09 21:03
Nishad S14-Jan-09 21:03 
GeneralRe: openGL SwapBuffers Pin
Nishad S14-Jan-09 23:49
Nishad S14-Jan-09 23:49 
GeneralRe: openGL SwapBuffers Pin
Dan15-Jan-09 9:27
Dan15-Jan-09 9:27 

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.