WPF equivalent to Java's BufferedImage?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • haven1433
    New Member
    • May 2010
    • 5

    WPF equivalent to Java's BufferedImage?

    Java provides a BufferedImage class with the following useful functionality:
    • Draw on it with a Graphics2D, allowing standard shapes (ovals, rectangles) or per-pixel manipulation.
    • Read from file or make a blank one, and write to file
    • Draw the image to a panel with possible scaling and rotation


    I've been looking into WriteableBitmap , but I can't seem to get WritePixels to work the way I need it to. Is there a good tutorial somewhere, or another class better suited for this task? I would like an image surface I can draw on to make procedural textures, fractals, or anything else that requires constant manipulation/draw, manipulation/draw. BufferedImage was perfect for this in Java, and as I port my code over to WPF from swing, I'd like an alternative that allows for minimum code reorganization.

    Note: I tried using the Bitmap class in Forms, but the flicker in Form drawing at high refresh rates wasn't acceptable.

    Thanks,

    haven1433
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    Sounds like the regular old Bitmap class to me?

    Comment

    Working...