Click here to Skip to main content
16,022,538 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
pkfox2hrs 56mins ago
professionalpkfox2hrs 56mins ago 
GeneralCCC OTD 2024-10-17 Pin
OriginalGriff3hrs 42mins ago
mveOriginalGriff3hrs 42mins ago 
GeneralRe: CCC OTD 2024-10-17 Pin
pkfox3hrs 39mins ago
professionalpkfox3hrs 39mins ago 
GeneralRe: CCC OTD 2024-10-17 Pin
OriginalGriff2hrs 57mins ago
mveOriginalGriff2hrs 57mins ago 
GeneralRe: CCC OTD 2024-10-17 Pin
pkfox2hrs 55mins ago
professionalpkfox2hrs 55mins ago 
GeneralRe: CCC OTD 2024-10-17 Pin
Pete O'Hanlon1 hr 3mins ago
mvePete O'Hanlon1 hr 3mins ago 
GeneralRe: CCC OTD 2024-10-17 Pin
pkfox35mins ago
professionalpkfox35mins ago 
GeneralRe: CCC OTD 2024-10-17 Pin
Pete O'Hanlon2hrs 5mins ago
mvePete O'Hanlon2hrs 5mins ago 
GeneralRe: CCC OTD 2024-10-17 - we have a winner! Pin
OriginalGriff1 hr 38mins ago
mveOriginalGriff1 hr 38mins ago 
GeneralSecond time's a charm =( Pin
honey the codewitch4hrs 17mins ago
mvahoney the codewitch4hrs 17mins 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 Pearson2hrs 56mins ago
Phil J Pearson2hrs 56mins ago 
GeneralRe: Second time's a charm =( Pin
honey the codewitch2hrs 24mins ago
mvahoney the codewitch2hrs 24mins ago 
GeneralFan switched off Pin
Amarnath S5hrs 12mins ago
professionalAmarnath S5hrs 12mins ago 
GeneralRe: Fan switched off Pin
GKP19925hrs 3mins ago
professionalGKP19925hrs 3mins ago 
GeneralRe: Fan switched off Pin
OriginalGriff3hrs 45mins ago
mveOriginalGriff3hrs 45mins ago 
GeneralEveryone needs staples in their head. "VStudio Updates: Via social media Pin" Pin
charlieg7hrs 56mins ago
charlieg7hrs 56mins ago 
GeneralRe: Everyone needs staples in their head. "VStudio Updates: Via social media Pin" Pin
theoldfool58mins ago
professionaltheoldfool58mins ago 
GeneralWordle 1,216 Pin
GKP19927hrs 56mins ago
professionalGKP19927hrs 56mins ago 
GeneralRe: Wordle 1,216 Pin
Shane01037hrs 2mins ago
Shane01037hrs 2mins ago 
GeneralRe: Wordle 1,216 Pin
OriginalGriff5hrs 7mins ago
mveOriginalGriff5hrs 7mins ago 
GeneralRe: Wordle 1,216 - 5 4 me Pin
pkfox4hrs 16mins ago
professionalpkfox4hrs 16mins ago 
GeneralRe: Wordle 1,216 Pin
Rich Leyshon3hrs 55mins ago
Rich Leyshon3hrs 55mins ago 
GeneralRe: Wordle 1,216 Pin
Sander Rossel3hrs 5mins ago
professionalSander Rossel3hrs 5mins ago 
GeneralVStudio Updates: Via social media Pin
raddevus15hrs 30mins ago
mvaraddevus15hrs 30mins ago 
GeneralRe: VStudio Updates: Via social media Pin
raddevus15hrs 27mins ago
mvaraddevus15hrs 27mins 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.