User-defined background?
-
How to implement user-defined background? Click a button to open the user's folder and let the user choose the picture they like as the plugin background
-
@CatABC
I made a snippet for you. :-)
This works in HISE. You have to check if it also works in a compiled plug-in or standalone app.
Please let us know if this works in a compiled program.HiseSnippet 1144.3ocsV8taaaCDmJIpaVacXAXO.D4SxEFt14OMdnXno1INKXIoFysA6aEzTT1DghTfhpIFCFXXOY8S64XOB6MX6HkrsRiQRqAlRPht+76ti2c5NNPqnrrLkF4E71ooLj225ObpzLo2DBWhN6Xj219uKiowQrXtjEg6dJp6zTRVFKB44s4oV07psEx87OupKQPjT1RVHzUJNkcNOgaVxcvQ+BWH5ShXukmTQ68O5LpR1SIT4PHsoeKTJgdMYL6RhUsM7Q+LIaBx6Y96wh1sSGxA6u2dzN+XG5gTRGFs8nCasKINZuNrnQQ6ev9Dj2SNIhaT5gFhgkAFsqJZ5vIpajEN3JdFejfYIZiFBdtfMp2DtHZv77SFB4s0fkYqMKxV+f+E7H9B9KyZeuS.dIhpIMuMdnPp8WPH4UIj1pHj11eHUySMKkXimuw+LogoiIPsoZnTnKZi+ZS+dJPCooYB4ZVeMPr.Q3KZ0pAF9S8WFD77migZ.N21THTPELBSvz7LiJAmxolbM6UAZ1XLO67Bw+DNlHxXEXuhn4D3vgiU5BiTBxgAdGTypmEK9rDnziIxHrlkBoVCNUJ5dZ.WJflQbbtjZ3JIVIGYjVDN.1ChVIBopjTkDNRMvefHxY0C98fZ73vRhZ.Us9bAa3zLCKo4Hs5lLVXENGyxt1nRaTD+Mv67rloxw6zXgiC0rrbgArkyXX3Ar+RlVFVAtWfyFjJJD9xELsmmlh4gdHnTSiZnQykiCaUuA9NLZWu9BjURuFcN6SrXY9Jzouk8L3+yrTyBlAo34E6wLSu4oovcplE2odyLqPWtrGQHFAeIFtxLc8xZ1.WIZ.QxDAvmwYkkKHBWs6bR2whtHnA+4LwupxMP8MbQZdrqzAUQMzqAm2I7LqoNWQIhtpbYTVns2rFF9EJ.ySMPI.WabyHM4lUjcaCYWRCLzYWfkA03B.wvroWKDgstse+cGY+woPsfYtSZPPkFuKUF1ajgt.LXV.9SEEGuRYkYNASuRw1oh5GBXnLOYDSWsy1pHLE3tiVdxm2nEZQ8ohhJ4YRt4MorR59JQjcjg886OHBUVfsijJiPPUiafz2UNPpatwnjHdjkU0tHj6LTckA5cmcLwPlaMvvfyRYZC2dl7Nl8AXkRw3tZ9kekBaGVzZAm6Be+z4CCs8jNW+U9tdMzsU82zpD2viLSVv3i+4QSX7wSLU4ftumd7S4RO9QwQK83e+GGYX2ZradWNyCwytPk.1mnAM81.c+47vFFUTtfXt6ZG6B4RAPCycl0ammKy3loUWX+ErKp0CtK5yMD21e.2Pmr5XbiUDiPWv+GwX4F7m5eRbLiZVFfa42+2V200Oh6KFrM9BBLABZG7uLOYHbSGJC7tD5PAi6CEaKTGcKKsMCLjIibD+K7TJrsk1qTX64BQIDpV8dZwGg16H70NNPLIc2gpl+EVZb66+YWBbkk2So20T2C3tqKv8VWf6ut.OXcA9h0E3gqKvNONP6MJecNbOqhOaPnKFbhaLom2IR6cpbcqn+CFpBTCC
You can use the wildcard to define which image format the user can select. I have chosen png. Of course you can also use jpg.
-
@Oli-Ullmann Great, it works fine in the compiled plugin, but there is a problem, how to make any size of the picture can cover the entire interface
-
@CatABC
I do not see any possibility in HISE to get the dimensions of an image file. But maybe you can do something like this?HiseSnippet 1591.3ocwX8taaaCDmJIpMVasXEXO.D4SJYYo1IosYnnst4esAKo0atMqdeofVh1lqxjFRTMwXK.ACaeeOB6QoOJ6QXuAaGIkjocrccMVvbLPLOd2we2u6n3QUKVDPSRDwHGuW0uGE474t06ykc1qCgwQGsOx4NtuNgFiCosXbZHd2mg1seORRBMD43r3yTp4TZIj9ye+jcIQDd.cfHD5TAKfdLqKSNPZspeKKJ5PRH8UrtVZuc0iBD78DQhT.RK5VF0iD7NRa5KHJ0VvE8bRRGjyZtaQC2bmcH2a6s1JXmuYmfGDP1gFTo4CJuIoU3V6PCaFt881lfbtwAgLoHttjHoIHm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hEp5JpXCKRCZ61ZQyfC7by2bLe1WxMq5bTyyBkYz7FiY0e8Q6SjDUOhYbBvS8nwRlJE3rO88PG5lNFK4l0aAPHEUjPOzlk8V48SpNIUup2zUWriN2Ft8sGn26VH3C+ZUy1AaIHqU5lCGf6lJkBtdotsq8I71q3uUcvJ9WWVUROWptHyfN0PrjSDP6rRRbeS4RB48zi30fldnx7NpG.hkmopjAH3O9cKD.WhIQ1WUC64dphjgNGFgEPOdTV3xuqJbCKBzA1oio1YF.lU02Dv0kjqObciIl0tkq0461IsGOtjlmagpCmgbVb1ngAahl.KTs20GK3N7tjiIMy1krrq92UlTQ6kmlE+K6lUa8o31Mmjaq9SYt8ltlJiOEut0j75eJK1gM3HezmV5owjROe3r++ROaOoHF+KWMhafPW891vM8EgoQD4vW+W8RRxl.Lcn6bqtOLbKaYeaP+e16DXVg3cbqwjAcFOFWXLXDNJ45.iYuIka4dPqVz.4..tj6gu4540lfL2.r8ID3pZP928EocqKRiCnvpygi4TMo3rf5LXy3xpwJFnNkGpG7OvmrIqnF6jMYk7IQcIAwh2FXNDW8tZVVKAvDW+dsJ4dhZLtxUO5uKKj81ffgc0ULby40vslWC2ddM7dyqg2edM7Ayqg67wMT8l8dZpTz0rsAgNo1A5dsbbNfqdCS5pUz+Bs7hDI.
@d-healey or do you have another idea?
-
@Oli-Ullmann said in User-defined background?:
@d-healey or do you have another idea?
Nag Christoph to merge one of these commits
https://github.com/christophhart/HISE/pull/403
https://github.com/christophhart/HISE/pull/289 -
@d-healey
Yes, we absolutely need that! :-) -
@Oli-Ullmann Yes, thank you very much for your help.