Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
39 user(s) are online (27 user(s) are browsing Forums)

Members: 0
Guests: 39

more...

Headlines

 
  Register To Post  

How to print text in RGB colour?
Quite a regular
Quite a regular


See User information
Is there any way, anywhere, on AmigaOS 4 to draw plain text in an RGB value without resorting to 35 year old technology (planar palette)??

Something as simple as
graphics.library->SetAPenRGB(red,green,blue); //NO stupid palette number involved
graphics.library->Text(rp, "Hello world!", 12);

Or do I just have old SDK documentation?

Software developer for Amiga OS3 and OS4.
Develops for OnyxSoft and the Amiga using E and C and occasionally C++
Go to top
Re: How to print text in RGB colour?
Just can't stay away
Just can't stay away


See User information
@Deniil

Just use RPTAG_APenColor tag with IGraphics->SetRPAttrs(). Format is 0xAARRGGBB.

Go to top
Re: How to print text in RGB colour?
Quite a regular
Quite a regular


See User information
@salass00

Nice! Thank you
I wonder how I've managed to miss this one. It is in my SDK docs and seems old but I've been looking for this kind of functionality for years!

Software developer for Amiga OS3 and OS4.
Develops for OnyxSoft and the Amiga using E and C and occasionally C++
Go to top
Re: How to print text in RGB colour?
Just can't stay away
Just can't stay away


See User information
@Deniil

There is also another way, use CompositeTags vertex mode, palette comes from the source bitmap and font shape from alpha bitmap. This allows rotating the letters and colour gradients.

Go to top
Re: How to print text in RGB colour?
Quite a regular
Quite a regular


See User information
@Capehill

Cool. But I don't do DTP or word processing. Just text :)

Software developer for Amiga OS3 and OS4.
Develops for OnyxSoft and the Amiga using E and C and occasionally C++
Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project