Skip to content

Usage Example: Option Scale Bitmap#658

Open
sananoureen35 wants to merge 1 commit intothoth-tech:mainfrom
sananoureen35:feat/option-scale-bmp-1-basic
Open

Usage Example: Option Scale Bitmap#658
sananoureen35 wants to merge 1 commit intothoth-tech:mainfrom
sananoureen35:feat/option-scale-bmp-1-basic

Conversation

@sananoureen35
Copy link

Description

Added a new usage example for the graphics API function Option Scale Bmp. I created minimal, beginner-friendly demos that scale a procedurally generated bitmap at draw time. The work included C++, C# top-level, and C# OOP versions, a short description text, and a GIF recording.

Type of change

  • Documentation (update or new)

How Has This Been Tested?

I verified the example locally in two steps. First, I ran each language individually: C++ with the SplashKit toolchain and C# (top-level and OOP) with dotnet run. I confirmed that A decreased the scale, D increased the scale, R reset to 1.0, SPACE toggled the outline, and ESC quit; the centered bitmap scaled smoothly and the outline box matched the current scale. Second, I added the files to the repository and ran npm run build followed by npm run preview; I opened the Usage Examples, Graphics page and confirmed the new example rendered correctly and the GIF displayed.

Testing Checklist

  • Tested in latest Chrome
  • Tested in latest Firefox
  • npm run build
  • npm run preview

Checklist

If involving code

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings

Folders and Files Added

src/assets/usage-examples-code/graphics/option_scale_bmp/option_scale_bmp-1-basic.cpp
src/assets/usage-examples-code/graphics/option_scale_bmp/option_scale_bmp-1-basic.cs
src/assets/usage-examples-code/graphics/option_scale_bmp/option_scale_bmp-1-basic-oop.cs
src/assets/usage-examples-code/graphics/option_scale_bmp/option_scale_bmp-1-basic.txt
public/usage-examples-images-gifs/graphics/option_scale_bmp-1-basic.gif

option_scale_bmp-1-basic

@netlify
Copy link

netlify bot commented Sep 21, 2025

Deploy Preview for splashkit ready!

Name Link
🔨 Latest commit b2fb058
🔍 Latest deploy log https://app.netlify.com/projects/splashkit/deploys/68e863be538d6700075915bc
😎 Deploy Preview https://deploy-preview-658--splashkit.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@sananoureen35 sananoureen35 force-pushed the feat/option-scale-bmp-1-basic branch from 4d96c28 to b2fb058 Compare October 10, 2025 01:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant