Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


How to effectively change image color

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
.lua
Expert Cheater
Reputation: 1

Joined: 13 Sep 2018
Posts: 189

PostPosted: Sat Jan 21, 2023 10:26 am    Post subject: How to effectively change image color Reply with quote

All I can think of is traversing pixels to modify it, but the efficiency is not so high. Do you have a good way

Another question is why the saved image is not transparent(But it is transparent in the form)



image.jpg
 Description:
 Filesize:  138.06 KB
 Viewed:  1365 Time(s)

image.jpg



Change image color.CT.lua
 Description:

Download
 Filename:  Change image color.CT.lua
 Filesize:  4.56 KB
 Downloaded:  74 Time(s)

Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25288
Location: The netherlands

PostPosted: Sat Jan 21, 2023 11:07 am    Post subject: Reply with quote

changing color not sure, but if transparant is enabeled and the picture isn't then the transparant color is taken from one of the corners (i think bottom left but could be wrong)
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
.lua
Expert Cheater
Reputation: 1

Joined: 13 Sep 2018
Posts: 189

PostPosted: Sat Jan 21, 2023 12:59 pm    Post subject: Reply with quote

Dark Byte wrote:
changing color not sure, but if transparant is enabeled and the picture isn't then the transparant color is taken from one of the corners (i think bottom left but could be wrong)
The image itself is transparent
Back to top
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 32

Joined: 16 Feb 2017
Posts: 1253

PostPosted: Sat Jan 21, 2023 3:49 pm    Post subject: Reply with quote

If the picture is transparent; Leave a label that is the same width as the image and fits right behind the image. (label.AutoSize=false)
You just need to change the label.color.
Maybe you can connect the tag to a timer and change the picture color at certain intervals.

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
.lua
Expert Cheater
Reputation: 1

Joined: 13 Sep 2018
Posts: 189

PostPosted: Sat Jan 21, 2023 10:49 pm    Post subject: Reply with quote

AylinCE wrote:
If the picture is transparent; Leave a label that is the same width as the image and fits right behind the image.
I mean, the image has transparent channels, and the image content still exists
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites