Questions tagged [rendering]

Rendering refers to a computer program formatting data for display or printing.

Rendering refers to a computer program formatting data for display or printing.

Rendering occurs when a model is processed into a specific representation to interface from one system to another (usually human) one.

For example, converting text plus a font specification to points on a printed page, or converting 3-D model-data to onscreen pixels.

Typical applications that "render", as relevant to Stack Overflow:

  • Browsers
  • Graphics programs
  • Video drivers
  • Printer drivers
  • Video viewing and/or editing programs.

See, also, the Wikipedia article on rendering.

6826 questions
512
votes
16 answers

How to render an ASP.NET MVC view as a string?

I want 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: 1. RenderPartial to String in ASP.NET MVC Beta If…
Dan Atkinson
  • 11,391
  • 14
  • 81
  • 114
329
votes
1 answer

How to render string with html tags in Angular 4+?

In my angular 4 app, I have a string like comment: string; comment = "

abc

"; When I serve this text in my html, like {{comment}} Then it displays:

abc

But I need to display the…
Shams Nahid
  • 6,239
  • 8
  • 28
  • 39
158
votes
2 answers

What's the concept of and differences between Framebuffer and Renderbuffer in OpenGL?

I'm confused about concept of Framebuffer and Renderbuffer. I know that they're required to render, but I want to understand them before use. I know some bitmap buffer is required to store the temporary drawing result. The back buffer. And the other…
eonil
  • 83,476
  • 81
  • 317
  • 516
157
votes
16 answers

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?
ram1
  • 6,290
  • 8
  • 41
  • 46
135
votes
3 answers

In what order are Panels the most efficient in terms of render time and performance?

There are many times when more than one panel would suitable for the layout I want, however I know there is a difference in render times for different panel types. For example, MSDN states that A relatively simple Panel, such as Canvas, can have…
Rachel
  • 130,264
  • 66
  • 304
  • 490
132
votes
9 answers

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 users#show action is completed, it renders the…
Matthew
  • 5,435
  • 6
  • 25
  • 29
115
votes
9 answers

Flutter (Dart): Exceptions caused by rendering / A RenderFlex overflowed

I have a problem with Flutter (Dart) RenderFlex overflowed pixels. An exception of rendering library. How can I manage or apply scrolling ability to my app page view and avoid Flutter's rendering exceptions with messages like: A RenderFlex…
oetoni
  • 3,269
  • 5
  • 20
  • 35
107
votes
25 answers

Unsupported major.minor version 52.0 when rendering in Android Studio

When I try to render a layout preview in Android Studio I get error: Unsupported major.minor version 52.0
Ivo Stoyanov
  • 16,256
  • 8
  • 62
  • 65
88
votes
8 answers

Chrome renders colours differently from Safari and Firefox

Chrome renders #FF3A00 as #FF0000 for some reason. I included a screenshot from jsfiddle to illustrate the point. The colour that the Color Meter reports (and what I see) differs from what CSS says. This happens to other colours too. For example,…
Evgeny Shadchnev
  • 7,320
  • 4
  • 27
  • 30
74
votes
8 answers

Can I export part of an HTML page to an SVG image?

I need a vector image of a Wikipedia navbox. Unfortunately, Inkscape can't open the HTML file, and neither Opera nor Chromium can save the page as SVG. Googling, googling, and yet more googling turned up nothing; in particular, 'HTML2svg' seems to…
Esteis
  • 4,669
  • 2
  • 29
  • 45
68
votes
6 answers

How to make item view render rich (html) text in Qt

Suppose my model has items with the following string for Qt::DisplayRole blah-blah some text other blah I want QTreeView (actually, any item view) to render it like a rich text. Instead, item views render it like a pure text by…
Anthony Serdyukov
  • 4,268
  • 4
  • 31
  • 37
68
votes
3 answers

How does glDrawArrays know what to draw?

I am following some begginer OpenGL tutorials, and am a bit confused about this snippet of code: glBindBuffer(GL_ARRAY_BUFFER, vertexBufferObject); //Bind GL_ARRAY_BUFFER to our handle glEnableVertexAttribArray(0); //? glVertexAttribPointer(0, 3,…
w4etwetewtwet
  • 1,330
  • 2
  • 10
  • 20
63
votes
13 answers

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.
Garth
  • 923
  • 2
  • 10
  • 15
62
votes
4 answers

How much faster is it to use inline/base64 images for a web site than just linking to the hard file?

How much faster is it to use a base64/line to display images than opposed to simply linking to the hard file on the server? url(data:image/png;base64,.......) I haven't been able to find any type of performance metrics on this. I have a few…
Tim
  • 671
  • 1
  • 7
  • 5
61
votes
17 answers

failed to resolve com.android.support:appcompat-v7:22 and com.android.support:recyclerview-v7:21.1.2

I installed ALL Extra and SDK API 21-22 including changed compileSdkVersion 22 to 21 and buildToolsVersion '22.0.1' to 21.1.2. I'm having Rendering Problems for API 22. I have tried changing the version to <= 21 but I'm still getting an error.
1
2 3
99 100