Armenian Knowledge Base  

Go Back   Armenian Knowledge Base > Technical sections > Languages, Compilers, Interpreters
Register

Reply
 
LinkBack Thread Tools
Old 22.05.2004, 12:13   #1
Младенец
 
Join Date: 05 2004
Location: pakistan
Age: 33
Posts: 14
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Question Smooth drawing ???????

Hi:

When drawing lines or circles in VC using CDC class, these are not smooth. Just like Paint Bursh in Windows.

How to draw smooth drawing in VC. Just like in Flash or Adobe Photoshop.

Burhan
Reply With Quote
Old 22.05.2004, 13:04   #2
Moderator
 
acid's Avatar
 
Join Date: 09 2001
Location: South Korea, Gumi
Posts: 7,699
Downloads: 102
Uploads: 34
Blog Entries: 16
Reputation: 561 | 6
Default

Do you mean antialiasing? When transitions from one color to another is taking place smoothly, using some intermediate colors.
Reply With Quote
Old 24.05.2004, 01:00   #3
Младенец
 
Join Date: 05 2004
Location: pakistan
Age: 33
Posts: 14
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Unhappy yes

Quote:
Originally Posted by acid
Do you mean antialiasing? When transitions from one color to another is taking place smoothly, using some intermediate colors.
yes......

Burhan
Reply With Quote
Old 24.05.2004, 07:38   #4
Moderator
 
acid's Avatar
 
Join Date: 09 2001
Location: South Korea, Gumi
Posts: 7,699
Downloads: 102
Uploads: 34
Blog Entries: 16
Reputation: 561 | 6
Default

There is no way to draw antialiased lines and circles as far as I know. So you need to find some algorithm and implement your own smooth drawing functions.
Reply With Quote
Old 26.05.2004, 01:11   #5
Младенец
 
Join Date: 05 2004
Location: pakistan
Age: 33
Posts: 14
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Exclamation What login i will use.

Quote:
Originally Posted by acid
There is no way to draw antialiased lines and circles as far as I know. So you need to find some algorithm and implement your own smooth drawing functions.
Hmmmmm

If i write my own function, what login i use?

Is i convert line to a bitmap? Or to increase bits per pixels in client area?

Any Logic any idea?

By the way thanks for your help.

Burhan.
Reply With Quote
Old 27.05.2004, 09:21   #6
Академик
 
greka's Avatar
 
Join Date: 09 2001
Location: inside myself
Posts: 5,369
Downloads: 0
Uploads: 0
Reputation: 18 | 5
Default

burhankhan, no to copy-paste source code: please use your favourite search engine for searching ideas about smooth drawing - all valuable ideas already invented and implemented.

At least you can use DirectX functions.

Reply With Quote
Old 30.05.2004, 02:18   #7
Младенец
 
Join Date: 05 2004
Location: pakistan
Age: 33
Posts: 14
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Wink Thanks

Quote:
Originally Posted by greka
burhankhan, no to copy-paste source code: please use your favourite search engine for searching ideas about smooth drawing - all valuable ideas already invented and implemented.

At least you can use DirectX functions.

Thanks for your advise.
It realy helf full for me.

Burhan
Reply With Quote
Sponsored Links
Reply

Thread Tools


На правах рекламы:
реклама

All times are GMT. The time now is 05:07.


Powered by vBulletin® Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.