I've been searching for days on google and reddit and other forums but I can't seem to figure it out. And if there is already a solution for this then I apologize for duplicates...
What I want is to test my mouse point on getPixel() for rgba values but that can only be done with sf::Image which I understand.
However, after I setScale with sprite I realize that the resize doesn't apply to the original image. Is there a way to resize the sf::Image somehow so that the scale updates as well?
For example, i have a star image that's width 50 and height 48 with a transparent background as star.png. I can set a sf::Texture and then sf::Sprite sprite(starImage) then setScale(2, 2) which doubles; but when I try to getPixel() for the image from sf::Image image = starImage.copyToImage() I get the original dimensions and not the doubled.
I feel like I'm missing something or is this not possible? I suppose I can just resize the original star png file and all the other png files ahead of time manually in photoshop to fit the window but is there an easier way? Thanks in advance.