Rendering refers to a computer program formatting data for display or printing.
174
votes
12answers
61k views
Render a view as a string
I'm wanting to output two different views (one as a string that will be sent as an email), and the other the page displayed to a user.
Is this possible in ASP.NET MVC beta?
I've tried multiple ...
3
votes
2answers
3k views
JTextFields on top of active drawing on JPanel, threading problems
Has anyone ever tried to use Swing to construct a proper multi-buffered rendering environment on top of which Swing user interface elements can be added?
In this case I have an animating red ...
74
votes
7answers
55k views
In Rails, how do you render JSON using a view?
Suppose you're in your users controller and you want to get a json response for a show request, it'd be nice if you could create a file in your views/users/ dir, named show.json and after your ...
23
votes
9answers
32k views
How to render pdfs using C#
I want to load and draw pdf files graphically using C#. I don't need to edit them or anything, just render them at a given zoom level.
The pdf libraries I have found seem to be focussed on ...
7
votes
3answers
10k views
Will an iframe render in quirks mode?
I'm working on setting up a page and am having difficulty with getting it to look well across browsers (actually just IE, as it renders properly for mozilla and webkit). I'm wanting to rule out quirks ...
19
votes
7answers
14k views
How do you determine if WPF is using Hardware or Software Rendering?
I'm benchmarking a WPF application on various platforms and I need an easy way to determine if WPF is using hardware or software rendering.
I seem to recall a call to determine this, but can't lay ...
12
votes
4answers
8k views
How to make item view render rich (html) text in Qt
Suppose my model has items with the following string for Qt::DisplayRole
<span>blah-blah <b>some text</b> other blah</span>
I want QTreeView (actually, any item view) to ...
17
votes
5answers
15k views
Pure Java HTML viewer / renderer
I wonder what are the available pure embeddable Java HTML viewers? The requirements are:
Should implement JComponent interface to be placed into Scrollable pane.
Should be preferably a free ...
16
votes
4answers
7k views
Convert SVG to PNG in Python
How do I convert an svg to png, in Python? I am storing the svg in an instance of StringIO. Should I use the pyCairo library? How do I write that code?
15
votes
7answers
3k views
Repeating website background image - size vs speed
I was wondering if anyone has done any tests with background images. We normally create a background that repeats at least in one direction (x or y or both).
Example
Let's say we have a gradient ...
5
votes
1answer
24k views
Changing JTable cell color
This is driving me absolutely insane.
I know that, to change the formatting of table cells with JTable, I have to use my own renderer. But I cannot seem to implement this properly.
This is my ...
35
votes
16answers
37k views
List of known “Safari on iPad” differences over “Desktop Safari”
In recently testing a web application on Windows/Mac desktop browsers - and then on an iPad I noticed various differences in Safari that I wasn't expecting. even though the version # is the same.
I'd ...
14
votes
5answers
3k views
Why do different browsers render the same HTML differently?
This is an html page :
<html>
<head>
<title>
Frame Set
</title>
<script type="text/javascript" src="jquery-1.4.2.min.js"></script>
<link rel="stylesheet" ...
9
votes
3answers
4k views
fastest way to draw a screen buffer on the iphone
I have a "software renderer" that I am porting from PC to the iPhone. what is the fastest way to manually update the screen with a buffer of pixels on the iphone? for instance in windows the fastest ...
14
votes
1answer
6k views
Rendering UIView with its children
I have a UIView that has an image and some buttons as its subviews. I'd like to get a "snapshot" image of it using renderInContext, or other method.
[clefView.layer ...