User Activity

  • Posted a comment on discussion General Discussion on Image32

    Hi Herbert, I have my own shape class I use which renders lines and bezier curves to an Image32. If you use something like that then it would be relatively simple to "render" that to an SVG file. I haven't done it as I have no need. If you are internally recognising that an image is vector based, and you use vector drawing commands to render it, (for example for arbitrary scaling) then you should be able to recreate the drwing instructions as an SVG file. Once the data is in a raster format then...

  • Posted a comment on discussion General Discussion on Image32

    Hi Angus (I still haven't had time to look at the new Layers code ...) I have discovered that in Img32.CopyPixels Changed is called regularly - however the TImage32 object has not actually changed. I use the OnChange event (which Changed fires) to notify users of a TImage32 that it has changed, which seems a reasonable thing to do, but the CopyPixels routine is not changing the TImage32, it's extracting an array of pixels from it. Should the OnChange event only be fired on actual changes to the TImage32?...

  • Posted a comment on discussion General Discussion on Image32

    My intention is to support ClockwiseRotationIsAnglePositive being set to either true or false, such that the library behaves properly with either setting. That's great to know! Thanks.

  • Posted a comment on discussion General Discussion on Image32

    Thanks Angus, That has done the job! I note that you have removed this section of code: while (deltaAngle > twoPi) do deltaAngle := deltaAngle - twoPi; while (deltaAngle < 0.0) do deltaAngle := deltaAngle + twoPi; if not fS then deltaAngle := deltaAngle - twoPi; but left in the declaration const twoPi: double = PI * 2 which I'm guessing is an oversight as it doesn't appear to be used anywhere else. I feel like I ought to leave another 5 star review, but I don't think I'm allowed ... Thanks again...

  • Posted a comment on discussion General Discussion on Image32

    Obviously you'll eventually have a TLayeredImage32 object so I don't understand why don't/can't create this first, and add to it any number of TGroupLayer32 objects (making them invisible if they aren't ready to be drawn)? Whether or not I can create one first depends on the scenario. In the case where the TLayeredImage is for a Form, then it means I would always have to know the form that a control is going to be shown on - that's a restricition that's not in VCL or FMX ... the only thing that's...

  • Posted a comment on discussion General Discussion on Image32

    Hi Angus, One of the things that I am thinking about for my UI code is to have additional layers which are separate from the CompositeElement (TGroupLayer32) that houses a control. This would be used for effects. For example all controls could cast a shadow on the form ... so the form background is the lowest layer, then the layers for the shadows, then the (Group) layers for the components. I may want to show a glow over the top of the controls, so there could be an effects layer at the top. I mention...

  • Posted a comment on discussion General Discussion on Image32

    Hi Anugus, When you say: Can't you fix your arc calculations? I understand you to mean that you want me to change the code in the library so that it works when ClockwiseRotationIsAnglePositive is False. (These aren't my arc calucltion, they're the ones done in the library when parsing the SVG text). My question: "Will you support the option to have ClockwiseRotationIsAnglePositive as False going forward?" was not asking if you will make that the default, it was asking if you will commit to the library...

  • Posted a comment on discussion General Discussion on Image32

    Thanks for this reply - I missed it earlier. What about using layers where you toggle visibility for these effects? If I apply a Gaussian Blur to a blank Image I would expect to get a blank image ... surely I need to apply the effect to the merged image? Again, couldn't you just create invisible TGRoupLayer32 objects that you later make visible? There is no TLayeredImage32 in existence yet. From the Create chain we reach this: constructor TLayer32.Create(groupOwner: TGroupLayer32; const name: string);...

View All

Personal Data

Username:
code-captain
Joined:
2020-07-20 09:27:13

Projects

  • No projects to display.

Personal Tools