Usage Example: Option Scale Bitmap#658
Open
sananoureen35 wants to merge 1 commit intothoth-tech:mainfrom
Open
Conversation
✅ Deploy Preview for splashkit ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
4d96c28 to
b2fb058
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
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
Checklist
If involving code
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