Image drawing into panel problem in compiled plugin
-
inline function bannerSetter() { bannerImage = "{PROJECT_FOLDER}"+styleCombo.getItemText()+."png"; infoPanel.loadImage(bannerImage,"banner"); infoPanel.repaint(); }
Hi I'm using this function in preset post callback. It successfully works in Hise. I have a comboBox (styleCombo) with image name list and a panel (infoPanel) to show selected image. When a preset is loaded, it changes the image inside the panel. But it is not working in compiled plugin. It seems that plugin cannot locate the image files. I checked the "Embed Image Files" option in Settings. Any help would be great.
(Hise 4.1.0 , Apple M1 Sequia, VST3 compiled)
-
@mehmethand ok I found the solution. I need load all images into pool.
Engine.loadImageIntoPool("{PROJECT_FOLDER}"xxx.png");
-