Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Method to display information in other screen positions other than top left #4

Open
adamsewell opened this issue Apr 7, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@adamsewell
Copy link

I may have missed this as well, but is there a method to display the bg information in another location other than the top left? Thanks!

@PrzemyslawKlys
Copy link
Member

I guess you didn't read the blog post right?

  • PostitionX and PostitionY is where it starts. Depending on your resolution you may want to adjust it.

In theory I could implement same thing as I implemented for for Watermarks in ImagePlayground

New-ImageQRCode -Content 'https://evotec.xyz' -FilePath "$PSScriptRoot\Samples\QRCode.png" -Verbose

# Add watermark
$Image = Get-Image -FilePath "$PSScriptRoot\Samples\QRCode.png"
# void WatermarkImage(string filePath, ImagePlayground.Image+WatermarkPlacement placement, float opacity = 1, float padding = 18, int rotate = 0, SixLabors.ImageSharp.Processing.FlipMode flipMode = SixLabors.ImageSharp.Processing.FlipMode.None, int watermarkPercentage = 20)
$Image.WatermarkImage("$PSScriptRoot\Samples\LogoEvotec.png", [ImagePlayground.Image+WatermarkPlacement]::Middle, 1, 0.5, 0, [SixLabors.ImageSharp.Processing.FlipMode]::None, 50)
# Add watermark with rotation 90 degrees
Save-Image -Image $Image -Open -FilePath $PSScriptRoot\Output\QRCodeWithImage.jpg

Where you would be able to choose Middle, BottomLeft, BottomRight and so on, but as described in a blog post it gets tricky depending on how you fit your wallpaper and few other things.

@PrzemyslawKlys PrzemyslawKlys added the enhancement New feature or request label Apr 12, 2023
@adamsewell
Copy link
Author

I appreciate your response but yes, I did indeed read the post but needed clarification, thus my post. It's more of a feature request than anything and I should have tagged it as such.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants