How to make pixel-accurate interface? - WoWInterface
Thread Tools Display Modes
Prev Previous Post   Next Post Next
07-11-18, 05:58 AM   #1
A Deviate Faerie Dragon
Join Date: Feb 2015
Posts: 17
How to make pixel-accurate interface?

I am trying to output some pixels and have two problems.

1. Frame:SetSize(x, y) in real pixels is not exactly x and y.

I can compensate it by using Frame:SetScale(768/real_resolution). But how can I get <real_resolution> within addon?

2. I cannot set exact pixel color.

I have
function SetColor256(obj, r, g, b)
    obj:SetColorTexture(r/255, g/255, b/255)
However, when I call it like SetColor256(1, 2, 3), real pixel might have (0, 1, 3). Or (1,2,3) as planned. Why? How to compensate it?
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » How to make pixel-accurate interface?

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