473,387 Members | 1,453 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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
May 29 '10 #1
1 3177
Plater
7,872 Expert 4TB
Sounds like the regular old Bitmap class to me?
Jun 1 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Graham Norman | last post by:
I am trying to create a sub image of a bufferedimage which contains a picture. I've divided the whole picture up into 80 by 80 pixels which gives me 7 rows and 6 columns. (there's a bit of wasted...
0
by: Graham Norman | last post by:
I am trying to create a sub image of a bufferedimage which contains a picture. I've divided the whole picture up into 80 by 80 pixels which gives me 7 rows and 6 columns. (there's a bit of wasted...
3
by: Moth | last post by:
I have a PlotPanel class that extends JPanel which I have used previously to display charts in swing guis. I now want to display a graph in a jsp page so I was going to generate the graph and then...
0
by: Mats Olsson | last post by:
How can I load a CMYK jpeg image (originally saved from Photoshop) and then turn it into an rgb BufferedImage, in order to display it on screen in an applet? I first tried ImageIO.read(), but...
1
by: Mats Olsson | last post by:
I have a native process (written in c) which generates an unknown number of bytes (jpeg images), and I would like to find an efficient way of transferring these bytes from native to java, the end...
1
by: Fred Ho | last post by:
Dear Sir/Madam, I try to make a function for image processing using java, I have add a menu item "Add Icon" under the menu bar. The function should read a file Icon.gif and place the icon at the...
1
by: tuananh87vn | last post by:
hi, I'm not familiar with Java but have to use it to slice a map into smaller tiles. Actually I use Batik projects and it has the following .java file: ImageTiler.java package...
1
by: HxRLxY | last post by:
I have a program that shows a thumbnail of an image. If the user clicks on the thumbnail a new JFrame is opened that shows the full size image. If the image is larger than the screen, it gets...
0
Debadatta Mishra
by: Debadatta Mishra | last post by:
Introduction In this article I will provide you an approach to manipulate an image file. This article gives you an insight into some tricks in java so that you can conceal sensitive information...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.