Click here to Skip to main content
15,885,869 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Expert... Pin
Mircea Neacsu13-Mar-22 10:06
Mircea Neacsu13-Mar-22 10:06 
GeneralRe: Expert... Pin
Slow Eddie13-Mar-22 7:53
professionalSlow Eddie13-Mar-22 7:53 
JokeWelcome to Plastic Surgery Addicts Anonymous Pin
honey the codewitch12-Mar-22 18:31
mvahoney the codewitch12-Mar-22 18:31 
JokeRe: Welcome to Plastic Surgery Addicts Anonymous Pin
Daniel Pfeffer12-Mar-22 22:50
professionalDaniel Pfeffer12-Mar-22 22:50 
GeneralRe: Welcome to Plastic Surgery Addicts Anonymous Pin
DRHuff13-Mar-22 4:54
DRHuff13-Mar-22 4:54 
GeneralDevice "independence" Pin
honey the codewitch12-Mar-22 13:50
mvahoney the codewitch12-Mar-22 13:50 
GeneralRe: Device "independence" Pin
jmaida12-Mar-22 17:33
jmaida12-Mar-22 17:33 
GeneralRe: Device "independence" Pin
honey the codewitch12-Mar-22 18:23
mvahoney the codewitch12-Mar-22 18:23 
Well, it's not resolution independent. You still specify everything in pixels, but you can size things relative to the dimensions() of your draw target.

The key here though is automatic conversion of pixel formats. You can draw any type of pixel to any draw destination. That means, for example, if you get 24-bit Y'CbCr pixels, like from a JPG, you can write them out to a 16-bit RGB display transparently. Same with going from color to monochrome or grayscale. If you add an alpha channel to the pixel, it will do alpha blending on the draw target with whatever color was at the current location on the draw target. If you draw to a device with a palette it will do color matching to that palette.

Basically, you don't have to worry about pixel formats. You can just draw. You can just load jpgs. You can just choose any of the colors from the X11 color palette, or make your own.

The upshot here is you can write your drawing code once, and run it on any display.
To err is human. Fortune favors the monsters.

GeneralRe: Device "independence" Pin
jmaida13-Mar-22 16:18
jmaida13-Mar-22 16:18 
GeneralRe: Device "independence" Pin
honey the codewitch13-Mar-22 16:33
mvahoney the codewitch13-Mar-22 16:33 
GeneralRe: Device "independence" Pin
jmaida13-Mar-22 18:50
jmaida13-Mar-22 18:50 
GeneralRe: Device "independence" Pin
Slow Eddie13-Mar-22 7:56
professionalSlow Eddie13-Mar-22 7:56 
GeneralRe: Device "independence" Pin
honey the codewitch13-Mar-22 8:58
mvahoney the codewitch13-Mar-22 8:58 
GeneralRe: Device "independence" Pin
trønderen13-Mar-22 11:23
trønderen13-Mar-22 11:23 
GeneralRe: Device "independence" Pin
honey the codewitch13-Mar-22 11:25
mvahoney the codewitch13-Mar-22 11:25 
GeneralI think I’ve ruined Wordle Pin
Matthew Dennis12-Mar-22 13:33
sysadminMatthew Dennis12-Mar-22 13:33 
GeneralRe: I think I’ve ruined Wordle Pin
dan!sh 14-Mar-22 1:06
professional dan!sh 14-Mar-22 1:06 
GeneralRe: I think I’ve ruined Wordle Pin
Matthew Dennis14-Mar-22 4:59
sysadminMatthew Dennis14-Mar-22 4:59 
GeneralRe: I think I’ve ruined Wordle Pin
willichan14-Mar-22 10:40
professionalwillichan14-Mar-22 10:40 
GeneralSWF files - is anyone still using them? Pin
honey the codewitch12-Mar-22 4:16
mvahoney the codewitch12-Mar-22 4:16 
GeneralRe: SWF files - is anyone still using them? Pin
RickZeeland12-Mar-22 6:40
mveRickZeeland12-Mar-22 6:40 
GeneralRe: SWF files - is anyone still using them? Pin
trønderen12-Mar-22 7:48
trønderen12-Mar-22 7:48 
GeneralRe: SWF files - is anyone still using them? Pin
honey the codewitch12-Mar-22 8:07
mvahoney the codewitch12-Mar-22 8:07 
GeneralRe: SWF files - is anyone still using them? Pin
RickZeeland12-Mar-22 9:52
mveRickZeeland12-Mar-22 9:52 
GeneralRe: SWF files - is anyone still using them? Pin
honey the codewitch12-Mar-22 9:58
mvahoney the codewitch12-Mar-22 9:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.