Code Monkey home page Code Monkey logo

Comments (12)

AlexHarker avatar AlexHarker commented on May 13, 2024

Have we got a test example?

from iplug2.

olilarkin avatar olilarkin commented on May 13, 2024

if you pGraphics->AttachCornerResizer(kUIResizerScale);

and

#if 1
for (auto i = 0; i < nRows * nColumns; i++) {
pGraphics->AttachControl(new IBKnobControl(*this, bounds.GetGridCell(cellIdx++, nRows, nColumns).GetPadded(-5.), bitmap1, kGain));
}
#endif

in IPlugEffect...

artifacts

towards the end of the gif, you can see a line appear around the dirty area

from iplug2.

olilarkin avatar olilarkin commented on May 13, 2024

more obvious on virtualcz. seems to be bitmap related
artifacts2

from iplug2.

AlexHarker avatar AlexHarker commented on May 13, 2024

I see it on the second example but not the first. Is virtualCZ scaled when it happens, or just at normal size?

from iplug2.

AlexHarker avatar AlexHarker commented on May 13, 2024

Oh - I see it on the top one, but the bitmaps shouldn't be drawing anywhere near that should they? I'll take a look.

from iplug2.

olilarkin avatar olilarkin commented on May 13, 2024

Yes, it's only when scaled that a thin line appears around the dirty area. here is a better video of IPlugEffect:
artifacts2

from iplug2.

AlexHarker avatar AlexHarker commented on May 13, 2024

OK - I have some traction on this, but one issue is that in IRECT there are Scale() and ScaleBounds().

The first of these rounds - the second increases outwards. There is also PixelAlign (increase outwards).

In my opinion Scale() shouldn't round to integer values and ScaleBounds() shouldn't exist, although I could make ScaleAlign() which would call Scale() and the then PixelAlign() for convenience.

Not sure what the effects of this will be, but I had seen it before and it doesn't look right.

from iplug2.

olilarkin avatar olilarkin commented on May 13, 2024

Interestingly the same thing happens with IGraphicsCanvas, when you rescale

from iplug2.

olilarkin avatar olilarkin commented on May 13, 2024

graphics-edge-effects branch doesn't fix this unfortunately

from iplug2.

AlexHarker avatar AlexHarker commented on May 13, 2024

I know - that was the branch where I was going to put it, but I was mostly experimenting. What got pushed there was some niceifying but not the real deal which needs to be done soon!

from iplug2.

AlexHarker avatar AlexHarker commented on May 13, 2024

Fixed on graphics-edge-effects branch

from iplug2.

AlexHarker avatar AlexHarker commented on May 13, 2024

Fixed by 6baa706

from iplug2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.