Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Elegant way to change bitmaps? (RackAFX7)
Avatar
TheSmile
Member
Members
August 13, 2019 - 2:10 am
Member Since: June 25, 2018
Forum Posts: 43
sp_UserOfflineSmall Offline

HI,

me again 😀

Is there any elegant way to change bitmaps (png) of knobs?
In RackAFX6 it was like this: Make a new png, kick it in the ressorce folder, build, done.
In RackAFX7 it is like this: Make a new png, store it somewhere (because I'm not able to replace the original file until closing RackAFX), delete the original file from the GUI-Designer, rebuild (!) the whole solution, add the new file to the GUI-Designer, rebuild(!) the whole solution again. 
Sometimes deleting from the GUI-Designer doesn't work ...

I know - I could use different file names but in my case I have f.i. knobs that are underlayed with a VU-Meter (or LED) and have a little button in the center. And here I'm talking about 80 knobs = 240 images. To separate and realign them is something about 3 hours (stupid pixel moving) each time ...

So - is there any better solution?

Btw: when i set a knob to log and it hits 0 scary things are happening (NAN or inf or so) 😉

Avatar
W Pirkle
Admin
August 13, 2019 - 1:05 pm
Member Since: January 29, 2017
Forum Posts: 352
sp_UserOfflineSmall Offline

The knob graphics are now stored in the XML file. This removes the need to add the files to each compiler project as resources. The original location of the PNG file is irrelevant because the PNG data is encoded (captured) into the XML file. This has to be done using the PNG Import method, which uses VSTGUI4's encoder object to do that. 

If you start with a blank project, and then add a PNG file to it, you can then inspect the XML file and see the PNG data. 

- Will

Avatar
TheSmile
Member
Members
August 13, 2019 - 1:12 pm
Member Since: June 25, 2018
Forum Posts: 43
sp_UserOfflineSmall Offline

Hi,

i know the pngs get stored with the XML file.

But the workflow is bad when one has to change images. Maybe do something with the Edit-Button in the Gui Designers PNG menu -like "replace image" or "reload png" or so ?

Avatar
TheSmile
Member
Members
August 14, 2019 - 5:30 pm
Member Since: June 25, 2018
Forum Posts: 43
sp_UserOfflineSmall Offline

Removing images from the XML(RackAFX) doesn't work for all images.

In GUI Designer -> PNGs -> Delete than Update, Rebuild Solution.

Sometimes they still appear under PNGs ...

Am I doing something wrong?

Avatar
W Pirkle
Admin
August 28, 2019 - 12:19 pm
Member Since: January 29, 2017
Forum Posts: 352
sp_UserOfflineSmall Offline

OK, I will check this. Not sure why that would happen because it is just an XML reader/writer.

Will

Forum Timezone: America/New_York

Most Users Ever Online: 55

Currently Online:
7 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Skyler: 48

Derek: 46

Frodson: 45

TheSmile: 43

Peter: 41

clau_ste: 39

JimmyM: 33

Gwen: 32

EZB: 24

lppier: 23

Member Stats:

Guest Posters: 1

Members: 571

Moderators: 1

Admins: 4

Forum Stats:

Groups: 12

Forums: 36

Topics: 586

Posts: 2347

Newest Members:

Simple, Chris_1, manyu, AdamR, Stuart, Al Calabrese, frankthetank, dhodgson, Wanderer, mister1234

Moderators: W Pirkle: 352

Administrators: Tom: 71, JD Young: 80, Will Pirkle: 0, W Pirkle: 352