Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
44 user(s) are online (29 user(s) are browsing Forums)

Members: 1
Guests: 43

sTix, more...

Headlines

Report message:*
 

Re: Help me in compiling latest pixman and cairo graphics

Subject: Re: Help me in compiling latest pixman and cairo graphics
by thellier on 2017/9/22 8:41:33

@salass00

No need to draw at bigger resolution : you can draw your segment only one time (when you change pen width ) in a small bitmap as the filtering will "stretch" it to current line's lenght

For example a 32x32 buffer bitmap will be ok (but a bigger one will alow a bigger "pen" than 32-4=28 pixels)

A------------------------------B
--------------------------------
-----######################-----
----########################----
--###########################---
--############################--
--###P####################Q###--
--############################--
--###########################---
----#########################---
-----######################-----
--------------------------------
D------------------------------C

here we have a 9 pixels "pen" with 2 a pixels margin
We draw ABCD rectangle as 2 tris oriented/centered on PQ line

Alain

Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project