Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » Look and Chameleon Technology » Why does ChPaint(..,img,...) have different behaviour with DRAW / PAINTER
Why does ChPaint(..,img,...) have different behaviour with DRAW / PAINTER [message #41192] Sun, 10 November 2013 19:13 Go to next message
Didier is currently offline  Didier
Messages: 697
Registered: November 2008
Location: France
Contributor
Hi all,

I have a problem, I am trying to draw some nice borders around text
and for this I thought using ChPaint() was a good idea ==> I benefit from the hotspots.

This works perfectly when the drawing uses DRAW.
But when I use PAINTER, the result is quite ugly.

It seems that the image processing (at least processing of the alpha value) is different with DRAW and PAINTER

In the example image showing the problem :
* "---M3---" : uses DRAW ==> looks is perfect
* " 2 " : uses PAINTER ==> alpha value seems to be summed with background color ==> leads to 'INVERSE VIDEO' like

Does someone have an idea why ?
Is their a restriction to use ChPaint() with PAINTER ??

index.php?t=getfile&id=4341&private=0

[Updated on: Sun, 10 November 2013 19:18]

Report message to a moderator

Re: Why does ChPaint(..,img,...) have different behaviour with DRAW / PAINTER [message #41290 is a reply to message #41192] Mon, 25 November 2013 19:52 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14164
Registered: November 2005
Ultimate Member
Didier wrote on Sun, 10 November 2013 13:13


Does someone have an idea why ?
Is their a restriction to use ChPaint() with PAINTER ??



No that I know about. It looks weird (and interesting). Hard to say without a code...

Mirek
Re: Why does ChPaint(..,img,...) have different behaviour with DRAW / PAINTER [message #41293 is a reply to message #41290] Mon, 25 November 2013 20:20 Go to previous messageGo to next message
Didier is currently offline  Didier
Messages: 697
Registered: November 2008
Location: France
Contributor
Hi Mirek,


I will try to upload an example, but I won't have time to do it until next week.
Re: Why does ChPaint(..,img,...) have different behaviour with DRAW / PAINTER [message #41501 is a reply to message #41293] Mon, 23 December 2013 10:12 Go to previous message
Didier is currently offline  Didier
Messages: 697
Registered: November 2008
Location: France
Contributor
Hi Mirek,

I created a new topic because my first problem was only du to a missing Premultiply() and is now solved but there still is a problem with using SUBPIXEL
http://www.ultimatepp.org/forum/index.php?t=msg&goto=414 62&#msg_41462
Previous Topic: app window too big to show on ubuntu
Next Topic: [WIN] Chameleon - blocking style changes
Goto Forum:
  


Current Time: Sat Dec 14 15:17:32 CET 2024

Total time taken to generate the page: 0.03479 seconds