rendering

HTML: How does a browser render an image for layout ?

How much layout space does a web-browser allocate when initially rendering: < img src="image.jpg" /> How much layout space does a web-browser allocate when initially rendering: < img src="image.jpg" style="max-height:100px; max-width:200px" /> How much layout space does a web-browser allocate when initially rendering: < img src="imag...

prevent IE to tamper with page code ?

Is it possible to prevent IE (7 or 8) to change the underlying code of a page ? My page, built with Dreamweaver, consists of a table with 5 images; each of these is a link to a larger size one. In FF or Chrome, the page displays exactly as planned. In IE, only the first image displays. All other have the "broken img" icon. The code reve...

Papervision Render to Movie or Film Strip

I am looking BitmapViewport3D for rendering to a texture, and I am wondering if there is a way to render to a movie or film strip for later viewing. Anything like that built into PaperVision? ...

Implementing a z buffer in a software rasterizer

Hello, as a homework assignment, we're writing a software rasterizer. I've noticed my z buffering is not working as well as it should, so I'm trying to debug it by outputting it to the screen. (Black is near, white is far away). However, I'm getting peculiar values for the z per vertex. This is what I use to transform the points: floa...

Flex Rendering Performance

Recently I found out that there are several things that one can do to massivly slowing down a Flex application. One of those things is the use of many nested layout containers. Another thing which is very problematic is the usage of lot's of relative positioning and sizes. I do understand that there is a very big amount of calculations ...

Where to specify image dimensions for fastest rendering: in HTML or in CSS?

I've learned that it is a best practice to explicitly specify image dimensions. The browser can then already layout the page while still downloading the images themselves, thereby improving (percieved) page rendering time. Is this true? And if so, is there a difference in specifying the dimensions in either HTML or CSS? HTML: <img sr...

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 render it like a rich text. Instead, item views render it like a pure text by default. How to achieve the desired rendering? Actually, this is a search results mod...

Asp.net pager click event not firing , what is the logic behind it ?

What I don't understand is, I have a pager_Create function, it is like that public void createPager() { Div_Pager.Controls.Clear(); ImageButton left = new ImageButton(); left.ID = "leftButton";// +new Random().Next(); left.Click+=new ImageClickEventHandler(pager_Left_Click); left.ImageUrl = "http://" + Request.Server...

Text rendering in Silverlight 4

With SL there is no access to underlying text rendering engine like the WPF allows to do using DrawingContext. All the rendering is internal. In SL4, we have the RichTextControl, the SL Framework still renders in some way by API's, Is these possible to access? Like, is it possible for the us developers to access it? Anyone knows how :). ...

JCombobox, Editor and Renderer related

As a JCombobox ListCellRenderer, I have a class like this one: class ZComboBoxRenderer extends JPanel implements ListCellRenderer{ private ZGrid grid; public ZComboBoxRenderer(ZGrid grid) { setLayout(new BorderLayout()); this.grid = grid; add(new JScrollPane(grid), BorderLayout.CENTER); } public ZGrid getGrid(){ return g...

How to render a text onto a WritableBitmap in Silverlight 3.0?

Hi, I have a set of image resources in a Silverlight client and I'm trying to render text on them. I can load the original BitmapImage into a WriteableBitmap but see no facility for rendering text onto it. Could anyone point me in the right direction? Thanks, ...

How do I render a view which contains Core Animation layers to a bitmap?

I am using an NSView to host several Core Animation CALayer objects. What I want to be able to do is grab a snapshot of the view's current state as a bitmap image. This is relatively simple with a normal NSView using something like this: void ClearBitmapImageRep(NSBitmapImageRep* bitmap) { unsigned char* bitmapData = [bitmap bitmap...

What is the fastest way to render an html table?

i have seen comments on using table-layout: fixed. I have seen comments on defining col widths upfront and also lots of comments on avoiding table especially nested tables and use some css solution instead of tables. Is there an agreed documented solution for rendering an html table as fast as possible? Also, if there is an alternativ...

OpenGL: Best rendering method for terrain which texture coordinates changes in real time?

I need to render in real time rendered animations for my terrain textures; what is the best rendering method for doing this? the animation is done by adjusting the texture coordinates. I have a pre-built array for all of the animation frames texture coordinates, is there some way to make animations faster to render if you let opengl kno...

Full screen rendering on widescreen monitors

My situation is as follows. I make games that use fixed size backgrounds (say 800x600). When players go fullscreen in a widescreen monitor, I add black bars to the sides, to make sure the game doesn't look stretched. There are several ways to do this, though, and I wonder what's the best approach : 1) Find a resolution that closely mat...

PHP Render/Redirect AJAX Call

Hello all, I am working on a PHP application and missing some of the functionality that Rails has. I currently have an AJAX form that when submitted accesses my_page_save_ajax.php. After I process the form and save it, I would like to redirect the AJAX call to either my_page_show_ajax.php if successful or back to my_page_edit_ajax.php i...

Java Font Rendering

I have been attempting to enhance my GUI system written in Java to use subpixel antialiasing and have been successful, except for two remaining anomalies. This is a follow on to my other question from a few weeks ago. The first problem is that setting rendering hints KEY_ANTIALIASING to VALUE_ANTIALIAS_ON causes KEY_TEXT_ANTIALIASING t...

Rendering out of place in Asp.net

How can i render an asp.net page in an order that i want. For example, in this Stackoverflow page you have Questions, Tags, users, Badges, Unanswered, ... at the top and then the question heading and the answers. If you view source for this, you will find that Questions, Tags are rendered from line 76, onwards. While the Question details...

Is it a fact that a smaller jQuey plugin (in KB) will perform better than same plugin with the same functionality but of a bigger size?

Or does it depend on the way in which it is written? My question is related to page rendering time. Can we determine which will give better performance? Should we always choose a smaller sized plugin? ...

Java Font Rendering (Redux) - Must general AA really be turned off for subpixel AA?

I have been attempting to enhance my GUI system written in Java to use subpixel antialiasing and have been successful, except for one remaining anomaly. This is a follow on to my other question from yesterday. The remaining problem is that setting rendering hints KEY_ANTIALIASING to VALUE_ANTIALIAS_ON causes KEY_TEXT_ANTIALIASING to be ...