Click here to Skip to main content
16,022,536 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.

 
GeneralEmail from Linkedin today Pin
pkfox57mins ago
professionalpkfox57mins ago 
GeneralCCC OTD 2024-10-17 Pin
OriginalGriff1 hr 43mins ago
mveOriginalGriff1 hr 43mins ago 
GeneralRe: CCC OTD 2024-10-17 Pin
pkfox1 hr 40mins ago
professionalpkfox1 hr 40mins ago 
GeneralRe: CCC OTD 2024-10-17 Pin
OriginalGriff58mins ago
mveOriginalGriff58mins ago 
GeneralRe: CCC OTD 2024-10-17 Pin
pkfox56mins ago
professionalpkfox56mins ago 
GeneralRe: CCC OTD 2024-10-17 Pin
Pete O'Hanlon6mins ago
mvePete O'Hanlon6mins ago 
GeneralSecond time's a charm =( Pin
honey the codewitch2hrs 18mins ago
mvahoney the codewitch2hrs 18mins ago 
I spent several days making my vector canvas able to "direct bind to a 'draw target'" if it happened to be a bitmap with a supported pixel format.

I did this by extracting the pointer to the bitmap and then doing the standard (y*stride) + x*(stride/width) on it to get my final pointer.

That sucks. For starters it only works with hard bitmaps. I can do better.

Enter gfx_span which is a little structure with a pointer and a length.

You can then do span(location).data and/or span(location).length off a bitmap to get a pointer and a length for the remainder of that row.

This is important, because it opens up the blt capability (direct read/write) to more than just bitmaps. For example, my UIX library the control surface draw target does a translation and clip before writing to the backing bitmap. Without span() I cannot get a raw pointer to the backing bitmap data. I must use methods off the draw target like point() and fill() which is generally much slower - all to do that translation and clip.

Unfortunately the existing code I've worked on for days will not survive this change. I have a lot of work in front of me, all because this span paradigm didn't occur to me on like, Monday. Mad | :mad: Curse my brain.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix

GeneralRe: Second time's a charm =( Pin
Phil J Pearson57mins ago
Phil J Pearson57mins ago 
GeneralRe: Second time's a charm =( Pin
honey the codewitch25mins ago
mvahoney the codewitch25mins ago 
GeneralFan switched off Pin
Amarnath S3hrs 13mins ago
professionalAmarnath S3hrs 13mins ago 
GeneralRe: Fan switched off Pin
GKP19923hrs 4mins ago
professionalGKP19923hrs 4mins ago 
GeneralRe: Fan switched off Pin
OriginalGriff1 hr 46mins ago
mveOriginalGriff1 hr 46mins ago 
GeneralEveryone needs staples in their head. "VStudio Updates: Via social media Pin" Pin
charlieg5hrs 57mins ago
charlieg5hrs 57mins ago 
GeneralWordle 1,216 Pin
GKP19925hrs 57mins ago
professionalGKP19925hrs 57mins ago 
GeneralRe: Wordle 1,216 Pin
Shane01035hrs 3mins ago
Shane01035hrs 3mins ago 
GeneralRe: Wordle 1,216 Pin
OriginalGriff3hrs 8mins ago
mveOriginalGriff3hrs 8mins ago 
GeneralRe: Wordle 1,216 - 5 4 me Pin
pkfox2hrs 17mins ago
professionalpkfox2hrs 17mins ago 
GeneralRe: Wordle 1,216 Pin
Rich Leyshon1 hr 56mins ago
Rich Leyshon1 hr 56mins ago 
GeneralRe: Wordle 1,216 Pin
Sander Rossel1 hr 6mins ago
professionalSander Rossel1 hr 6mins ago 
GeneralVStudio Updates: Via social media Pin
raddevus13hrs 31mins ago
mvaraddevus13hrs 31mins ago 
GeneralRe: VStudio Updates: Via social media Pin
raddevus13hrs 28mins ago
mvaraddevus13hrs 28mins ago 
GeneralRe: VStudio Updates: Via social media Pin
Richard Andrew x6411hrs 1 min ago
professionalRichard Andrew x6411hrs 1 min ago 
GeneralRe: VStudio Updates: Via social media Pin
charlieg6hrs 14mins ago
charlieg6hrs 14mins ago 
GeneralSwitchboard operators... Pin
Jeremy Falcon19hrs 18mins ago
professionalJeremy Falcon19hrs 18mins ago 
GeneralRe: Switchboard operators... Pin
Marc Clifton18hrs 43mins ago
mvaMarc Clifton18hrs 43mins ago 

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.