Results 1 to 40 of 54

Thread: [RESOLVED] Layer rendering (image program)

Threaded View

  1. #29

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2009
    Posts
    629

    Re: Layer rendering (image program)

    Note that there's also a Matrix.RotateAt(angle, point) which may save you having to do separate translations.
    Yep I know. But I can't seem to get rotateat working. First to clear stuff up:
    - layers can contain different types
    - current type that is supported: "Picture Node"
    - picture node arguments/paramters are:
    + location (as Watched point, structure I made myself to see if it has changed)
    + size (as Watched size)
    + static rotation (as Watched integer)
    + middle point for dynamic rotation (watched point)
    + dynamic rotation (variablehandler; changes value by setting a variable)
    + sizedimage property (checks for a changes size, generates a new sized image if needed)
    + color (new color class, capable of doing new stuff. Including: to image attributes, from/to ole; decimal text; drawing color; argb and "merge" option to merge it with other colors)

    All key parts are now working, even the coloring.

    As you saw in the draw sub, it takes a lot of stuff to draw the final image.
    (that's why I used bitmaps to store them in the earlier version).

    Now I have a couple of questions:
    - how can I rotate the image around the middle using rotateat?
    - how can I add "subclassing" so the subclasses can access the parent; for example:
    Code:
    public class testclass
       public b as integer
       sub new()
          me.testsubclass.a = 1
       end sub
       public class testsubclass
          public sub SetB()
             b = 2
          end sub
          public a as integer
       end class
    end class
    - How can I add additional effects to the graphics object (as example greyscale/inverted colors) If I need to apply it on every ondraw and not infront/after, how can I merge two effects?
    Last edited by bergerkiller; Aug 12th, 2010 at 01:23 PM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width