AKB Forums

Go Back   AKB Forums > Technical sections > Languages, Compilers and Interpreters
Home Register Blogs FAQ Members List Calendar Downloads Arcade Mark Forums Read

Languages, Compilers and Interpreters C,C++,C#,.NET,Java,PHP,Perl,SQL and more

Troubles when posting message? Click here! :: Проблемы с отправлением сообщения? Нажмите сюда!

Reply
 
LinkBack Thread Tools Display Modes
Old May 22, 2004, 11:13   #1
Младенец
 
Join Date: May 2004
Location: pakistan
Posts: 14
Rep Power: 0
Reputation: 10
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
burhankhan is offline   Reply With Quote Quote selected
Old May 22, 2004, 12:04   #2
Administrator
 
acid's Avatar
 
Join Date: Sep 2001
Location: South Korea, Gumi
Posts: 7,163
Blog Entries: 15
Rep Power: 10
Reputation: 298
Do you mean antialiasing? When transitions from one color to another is taking place smoothly, using some intermediate colors.
__________________
Chat with acid


acid is offline   Reply With Quote Quote selected
Old May 24, 2004, 00:00   #3
Младенец
 
Join Date: May 2004
Location: pakistan
Posts: 14
Rep Power: 0
Reputation: 10
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
burhankhan is offline   Reply With Quote Quote selected
Old May 24, 2004, 06:38   #4
Administrator
 
acid's Avatar
 
Join Date: Sep 2001
Location: South Korea, Gumi
Posts: 7,163
Blog Entries: 15
Rep Power: 10
Reputation: 298
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.
__________________
Chat with acid


acid is offline   Reply With Quote Quote selected
Old May 26, 2004, 00:11   #5
Младенец
 
Join Date: May 2004
Location: pakistan
Posts: 14
Rep Power: 0
Reputation: 10
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.
burhankhan is offline   Reply With Quote Quote selected
Old May 27, 2004, 08:21   #6
Administrator
 
greka's Avatar
 
Join Date: Sep 2001
Location: @work
Posts: 5,347
Rep Power: 10
Reputation: 23
Send a message via ICQ to 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.

__________________
И повешенные могут качаться в неположенную сторону. /С.Е.Лец/
greka is offline   Reply With Quote Quote selected
Old May 30, 2004, 01:18   #7
Младенец
 
Join Date: May 2004
Location: pakistan
Posts: 14
Rep Power: 0
Reputation: 10
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
burhankhan is offline   Reply With Quote Quote selected
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Idet dojd', pasmurno......Vashi misli, chuvstva, deystviya..... Primavera Psychology and Philosophy 43 Nov 13, 2002 20:14


All times are GMT. The time now is 00:53.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
This board was founded on September 29, 2001
Powered by Viper Internet

Affordable Web Hosting | ParevNet

Buy text link