Professional terminology Banter

Source: Internet
Author: User

Like network communication, there are the following nouns: sockets, ports, transport layer, IOS7 layer model, and so on, the connection is reset by the server, operation timeout!! Little laugh at yourself: so far unable to complete the IOS7 layer model, and even iOS spelling is not necessarily correct. But it doesn't mean I'm not proficient in the TCP/IP protocol.

Needless to say, for the rendering library, as many concepts, render,raster,stride,scanline,cap, and so on, someone once said 30 minutes to learn STL, I can only say the following professional name description, as well as the basic concept must always keep in mind, And especially the patchwork of logic, can be used in the time, more practice.

Agg::rendering_buffer

    // Save the pixel point matrix data memory block, you can see the picture on the screen as a matrix, the width, width of height of the picture, in memory corresponding to a continuous data block, for a point, there is a horizontal axis and ordinate, but in memory there is no two-dimensional array of performance, is just a contiguous block of memory, just by segmenting it as a two-dimensional matrix. The block of memory rendered by Rendering buffer is the color block of memory that is about to display the interface, where the Agg::rendering_buffer class provides a series of functions that directly manipulate the color of a coordinate point, such as row_ptr (); This will provide a detailed explanation later.


Typedefagg::renderer_base<agg::p ixfmt_bgr24>

//renderers renderer, which we can look at as paint, paint, provide color for line segments

typedef agg::renderer_scanline_aa_solid<renderer_base_type>

//vertex Source Vertex source, which I prefer to call a collection of endpoints, or Point collection matrices

Agg::ellipse ell (100,100,50,50);

//coordinate Conversion Pipeline coordinate conversion channel, obscure, it can transform vertex source in the vertex, such as matrix transformation, contour extraction, converted to dashed lines and so on.

Typedefagg::conv_contour<agg::ellipse>

//scanline Rasterizer Rasterization, said she was the album, describing all we were about to portray the pattern, color, line,

    // but it is not true, because she is just a container, a specification that records line segments, signs, detailed parameters,

    // not even a sketch, she was more like a cookbook, which recorded the ingredients and recorded the cooking process, that's all.

Agg::rasterizer_scanline_aa<> RAS;

AGG::SCANLINE_U8 SL;

Anti-aliasing

is translated into anti-aliasing, no one tells me why to use the IMG form, but this concept, for the unfamiliar you completely do not feel, you have a smooth image of how to feel, without any edge, imagine the saw blade serrated, in fact, rough rendering, will let you see, Later, compare the results of the MFC rendering, look at the smoothness, and compare the differences between the two.

The pixel format renderer (pixelformatrenderer) is the most basic renderer and does not require the support of any other renderer, so it can be declared directly;

The base renderer (Baserenderer) is a mid-level renderer that requires pixel format support for the template and pixel format renderer;

The Scanline renderer (scanlinerenderer) is an advanced renderer that requires the base renderer as a template and support;


Professional terminology Banter

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.