Draw Image in Presets Browser
-
How can I draw image in presets browser ? Can I draw image via LAF ? How.
-
@DabDab Yes, I posted a video about this on Patreon recently.
-
@d-healey It is possible for the Expansions column only, right?
-
@orange I believe it should work for any column
-
@d-healey When it will be available on Regular Youtube?
-
@DabDab Not for at least a month.
-
@d-healey Ok.
-
@d-healey I was trying to join Patreon but my Currency and card doesn't allow me to join Patreon. When I am selecting Paypal gateway page doesn't load....
May be i have to wait for it as Regular YT video.
-
@d-healey Can I get a basic Idea on LAF and Image? A minimal example ?
-
@DabDab said in Draw Image in Presets Browser:
@d-healey I was trying to join Patreon but my Currency and card doesn't allow me to join Patreon. When I am selecting Paypal gateway page doesn't load....
You might need to contact Patreon or PayPal about that.
Can I get a basic Idea on LAF and Image?
It's the same process as drawing an image on a panel. Only instead of loading the image into the panel you load it into the laf object. Then you can use it in any of the laf functions.
-
const var Texture = Content.getComponent("Texture"); const var FloatingTile1 = Content.getComponent("FloatingTile1"); Texture.loadImage("{PROJECT_FOLDER}images.jpg", "TextureImage"); Texture.setPaintRoutine(function(g) { g.drawImage("TextureImage", [0, 0, this.getWidth(), this.getHeight()], 0, 0); }); const var laf = Content.createLocalLookAndFeel(); laf.registerFunction("drawPresetColoumnBrowserBackground", function(g, obj) { Console.print(trace(obj)); g.drawImage("TextureImage", [0, 0, this.getWidth(), this.getHeight()], 0, 0); }); FloatingTile1.setLocalLookAndFeel(laf);
getting Error... Please correct me. How can I load to LAF Obj?
-
@DabDab
laf.loadImage()
-
D DabDab marked this topic as a question on
-
D DabDab has marked this topic as solved on