Quote from: sudoku on May 20, 2024, 04:32:00 AMAs I was not yet implementing this, it was just a simple question. The Campus seemed appropriate.It's not a question of implementation, it's a question of subject matter.
Quote from: jj2007 on May 20, 2024, 04:11:33 AMYes, exactly. Hence my search for other methods than stretching or scaling a lower resolution.Quote from: daydreamer on May 20, 2024, 03:39:54 AM... stretch BLT ?No, that won't work. StretchBlt just blows up the low resolution to a pixelated "high" resolution.
Quote from: NoCforMe on May 20, 2024, 04:20:18 AMrather than using a printer DC, which might work but would be fairly clunky to implement, how 'boutThats another option that seems viable.
1. Creating a window of the desired size (doesn't have to be visible)
2. Getting a DC to that window, which should also be that same size
QuoteBTW, shouldn't this really be in the Windows API forum since it deals with device contexts, which after all are a Windows GUI thing?As I was not yet implementing this, it was just a simple question. The Campus is appropriate.
Quote from: Campus DescriptionA protected forum where programmers learning assembler can ask questions in a sensible and safe atmosphere without being harassed or insulted.We are all still learning, since no one knows everything.
Quote from: daydreamer on May 20, 2024, 03:39:54 AMuse really big backbuffer and stretch BLT ?
Quote from: tda0626 on May 20, 2024, 12:56:11 AMAfter some studying up on the subject, I came across Bresenham's line drawing algorithm so my program uses that to draw the line.Congrats; that's some pretty fancy stuff.
mov ax, y ; Calculate offset in video memory
mov bx, 320 ; Y * 320 + X
mul bx
you can get rid of an instruction: mov ax, 320
mul y
since mul multiplies whatever is in AX by the multiplier (y in this case).Quote from: sudoku on May 20, 2024, 03:16:19 AMwrong thread for your attachment?
Quote from: jj2007 on May 20, 2024, 03:13:35 AMAh okay. I hadnt thought about printer DC's. I had never done any printer related coding. Some more research needed before trying to code it up.Quote from: sudoku on May 20, 2024, 03:02:22 AMDoes that even sound plausible?
Yes. Just study anything printer DCs - same problem, as printers have a much higher resolution than a monitor.