graphics programming

i need the lines of code for the following algorithms.

flat fill
body fill
ellipse
morphing
scaling
rotation
translation
khansaquibAsked:
Who is Participating?
 
mmusanteConnect With a Mentor Commented:
for a more general approach to translation-scaling-rotation take a look here ...

http://www.engineeringsurveyor.com/transformations.htm
0
 
Mayank SAssociate Director - Product EngineeringCommented:
This is not a homework site.
0
 
funvillCommented:
+ you did not give us much information on how to help you

what language ?
....
..
.
0
What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

 
Harisha M GCommented:
Graphics Programming in .... ? (C/C++/VC++ or others)
0
 
khansaquibAuthor Commented:
c or c++
0
 
mmusanteCommented:
Translation :
x1 = x + xt
y1 = y + yt

Scaling :
x1 = (x-x0)*fx + x0
y1 = (y-y0)*fy + y0

where (x,y) = original point
          (x1,y1) = new point
          (x0,y0) = scaling center point
          fx, fy = scaling factors
          xt, yt = translation offsets
0
 
khansaquibAuthor Commented:
'Hi

Ive made the code in VB and its working well. Thanx for your help. I want this question to be closed.
0
 
Mayank SAssociate Director - Product EngineeringCommented:
You said that you want to do this in C/ C++. So the experts gave you help for that. Then you said that you did it in VB. That's not the correct thing to say, is it? You should've told us initially, that a VB solution was also fine with you.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.