Im new to Juce and just trying to develop my first plugin. I managed to answer all my questions by lurking this board but there is one thing I dont understand:
I had a png for a rotary slider and converted it with the Binary Builder.
Everything went fine so far.
But when it gets displayed its half-transparent. The brighter the pixel, the more transparency it gets.
Maybe there is a problem with pngs that already have transparent background?
Do I need to tell the Binary Builder that my png actually has an alpha channel?
Here is how I draw my Image in the code:
Image knobNormal = ImageCache::getFromMemory (binaryKnob::knob_png, binaryKnob::knob_pngSize);
g.drawImageTransformed (knobNormal, rotator.rotated(angle,73,73).scaled(width*0.005,height*0.005), false);
And here is my test knob png:
I hope you can help me with this one.
Keep up the good work
edit: Oh and there is one more thing but I hope this is an easy one… when using “drawImageTransformed” - is there any way to tell the graphics object WHERE to draw the image (e.g. with x and y offset)? …I tried drawImage() and after that add Transform() but that includes the other elements that i dont want to transform…