rendering

Render a view as a string

Hi all! 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 examples: RenderPartial to String in ASP.NET MVC Beta If I use this example, I receive the "Cannot redirect after HTTP headers have be...

Why is my Aspx page rendering different HTML in FireFox and IE

I have come across a problem where, my asp.net code is being rendered differently on Firefox and IE. When I say differently, I mean, A linkButton in IE renders as anchor tags. On Firefox however, it renders as a span code example <ItemTemplate> <div id="<%#Eval("Id","{0}") %>"> <asp:LinkButton ID="ProductName" runat="server" ...

Algorithm for drawing an anti-aliased circle?

What's a good algorithm for drawing anti-aliased circles? (Filled and not filled.) ...

Is there a java-library for rendering with a voxel-engine?

I'm interested if there are libraries in java, that render voxel-based sceneries? Open-Source is preferred, as always. ...

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 generation. How do I do this? Thanks. ...

Testing the rendering speed of IE on a specific page

If my goal is to test the rendering speed in IE of a specific web page through repeated loads (merely using a javascript onload event for timing and viewing the page doesn't cut it), what would be a good way to do it? My current attempt was by using the IE WebBrowser object in VB and C#, though I'm open to other suggestions. Below is s...

get HTML of current page without ViewState ASP.Net

Is there any way through which I can get HTML of my current page. By current page I mean let's say I am working on Default.aspx and want to get HTML by providing a button on it. How to get it. ...

Speed of CSS

This is just a question to help me understand CSS rendering better. Lets say we have a million lines of this. <div class="first"> <div class="second"> <span class="third">Hello World</span> </div> </div> Which would be the fastest way to change the font of Hello World to red? .third { color: red; } div.third { color:...

Change tab stop size in rendered HTML using Qt's QLabel class

I'm rendering some HTML in a QT QLabel. The HTML looks like this: <pre>foo\tbar</pre> (note that I've put "\t" where there is a tab chracter in the code). This renders fine, but the tab character appears to be rendered as eight spaces, whereas I want it to be redered as 4. How can I change this without having to change the source HT...

Papervision Render to Bitmap

Does anyone know of a way to render a 3D scene to a bitmap using the Papervision renderer? I would like to take a freeze-frame of my scene that I can display while I change the scene in the background. ...

OpenGL rendering in Windows XP with multiple video cards

I'm developing an OpenGL application for Windows XP. The target machine has 2 NVIDIA GeForce 9800GT video cards, which are needed because the application needs to have output 2 streams of analog video. The application itself has two OpenGL windows, one for each video card. Each video card is connected to one monitor. As for the code, it...

Document-Rendering in Java

I want to render MSWord, PDF, HTML, etc to an image (e.g. TIFF) from server-side Java. Most available products are shareware printer drivers, and so not suited to a commercial server app: I'd like the library which is robust, well-supported, performant, and concurrent. Any suggestions for open-source or commercial libraries? ...

Recommend some Bresenham's-like algorithm of sphere mapping in 2D?

I need the fastest sphere mapping algorithm. Something like Bresenham's line drawing one. Something like the implementation that I saw in Star Control 2 (rotating planets). Are there any already invented and/or implemented techniques for this? I really don't want to reinvent the bicycle. Please, help... Description of the problem. ...

What options are available for the layout of directed or undirected graphs in .NET?

By graph here I mean something resembling these images: The ideal solution would: use only managed code allow output to a bitmap image allow output to WPF elements include some kind of interactive surface for displaying the graph that supports zooming, panning and reorganisation of nodes I'm also interested in hearing about proj...

WPF Label FontSize problem.

I have create WPF application and set style of control using style. I have found problem on some control such as Label that I have set FontSize, FontWeight, FontFamily etc. All value is working as I expect except FontSize and FontFamily that seem don't working correctly at runtime. (At design time FontSize and FontFamily is seem to chang...

WinForms: How to custom draw using the selected RenderMode?

I have some custom controls that will require custom painting. I cannot use any of the drawing services available in Windows (e.g. ThemeAPI), since .NET applications ignore look-and-feel of the operating system they are on, and instead use their own look and feel. e.g. Toolbars are not the toolbar common control Status bars are not t...

Website page becomes narrow when www prefix is not typed in browser

This is one of the strangest things I have seen. In Firefox 3 for PC, pages for a website we are developing become squeezed narrow, which makes the layout go completely nuts. If you type in http://www.wms-clients.com/vcb, the index page looks fine. If you type in http://wms-clients.com/vcb, everything is squished. Can anyone with FF3 ...

What are some faster alternatives to Java2d?

I'm looking to do some physics simulations and I need fast rendering in Java. I've run into performance issues with Java2d in the past, so what are the fast alternatives? Is JOGL significantly faster than Java2d? ...

Windows chooses wrong icon from multi-icon file and self renders to correct size

I have an .ico file with 5 icon sizes embedded in it being used as the main application icon and the System Tray icon. When it shows up in the task bar the icon is using the 16x16 format which is desired. When the icon shows up in the Notification Area/System tray, it is using the 32x32 format and Windows is rendering it down to a 16x16...

Self-Referencing Renderbuffers in OpenGL

I have some OpenGL code that behaves inconsistently across different hardware. I've got some code that: Creates a render buffer and binds a texture to its color buffer (Texture A) Sets this render buffer as active, and adjusts the viewport, etc Activates a pixel shader (gaussian blur, in this instance). Draws a quad to full screen, wi...