Preview

Fast Drawing Techniques....

Powerful Essays
Open Document
Open Document
1322 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Fast Drawing Techniques....
Fast Drawing and Bitmap Graphics
This chapter presents fast drawing techniques, animation using bitmaps, and color palettes. First, fast drawing using the exclusive-or (R2_XORPEN) and the exclusive-nor (R2_NOTXORPEN) ROP2 codes is explored. Then, fast drawing using the “backing store” technique is discussed. Bitmaps are used in the backing store technique, and their use is introduced. After this, an example of creating animation using bitmaps is presented. Finally, the device independent bitmap (DIB) and color palettes are discussed.
In the graphics example of the previous chapter, the area enclosed in a rectangle surrounding the shape being formed is redrawn whenever the mouse moves. This causes the entire rectangular area to flicker while drawing.
Drawing techniques can be used that only need to change the area within the shape being drawn. When the shape is an ellipse, the shape itself need only be erased and redrawn, rather than the entire rectangular area surrounding the ellipse. But a way to erase its previous shape from the screen needs to be provided prior to redrawing it in its new shape. In this chapter such techniques, which promote fast drawing and minimum screen flicker, are explained.
Using Exclusive-or and Exclusive-nor for Fast
Redraws
The first fast drawing technique presented is the use of either of the fast drawing modes: exclusive-or or exclusive-nor. This technique is demonstrated by modifying the graphics program presented in the previous chapter in
Listing 3-3. The running program is shown in Figure 4-1. The program called
“FastDraw” looks a lot like the graphics program with the exception that the menu item “ROP2” has been replaced with a new menu item,
“FastRedrawMode,” which creates a popup menu with two choices:
“XORMode” or “NotXORMode.” These menu choices, of course, are used to set the parameters of the fast drawing mode; “XORMode” gives the choice of drawing with the exclusive-or mode, and “NotXORMode”

You May Also Find These Documents Helpful

  • Good Essays

    Unit 7 Lab

    • 726 Words
    • 3 Pages

    * An object orbits in an ellipse and a circle is a ellipse where the eccentricity is zero.…

    • 726 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    | Shape is a _________________ element. It becomes visible when an area of a picture space is set off from the rest. Your Answer:…

    • 1085 Words
    • 5 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Dynamic Earth Study Guide

    • 282 Words
    • 2 Pages

    g. Put your pencil into the appropriate whole of the slider that pointed to the distance of the epicenter.…

    • 282 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Lab Assignment

    • 1565 Words
    • 7 Pages

    1. The 4 corners of the heart (1 point each corner) and draw the outline of the heart (0.5 point).…

    • 1565 Words
    • 7 Pages
    Powerful Essays
  • Satisfactory Essays

    Section 3 Study

    • 375 Words
    • 2 Pages

    4. What is the difference between an arc and a segment when drawn with the Ellipse Tool? (1.0 points)…

    • 375 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Review the nature and function of Leonardo da Vinci’s drawings on the Drawings of Leonardo website, http://www.drawingsofleonardo.org/ .…

    • 81 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    Free Draw Analysis

    • 80 Words
    • 1 Page

    Another example of this art therapy category is free draw. Free draw is faily self-explanatory, drawing quickly without thinking. And then there is drawing completion. the patient is given a paper that already has some lines on it or maybe some form of a shape is on it. They have to work with what they start with and transform it into a bigger picture. This project can b transformed into a group effort if the therapist were to decide so.…

    • 80 Words
    • 1 Page
    Satisfactory Essays
  • Better Essays

    Slowness In Modern Art

    • 1301 Words
    • 6 Pages

    Increasingly in the world of modern art, and especially since the 1970’s, there has been a shift towards the aesthetic of slowness. This is particularly in response to the speeding up of the human experience ever since the introduction of modern machines, both industrial and digital, that cut production and response times in half. Prime examples of these genres of art include open-shutter photography, time-lapse photography and mixed media art works. Reigning as an anthology of these works is Lutz Keopnieck’s book On Slowness: Towards an Aesthetic of the Contemporary, in which he attempts to detail and comment on works which build towards this all-important slowness. In this day and age, practices such as life hacking and multitasking have…

    • 1301 Words
    • 6 Pages
    Better Essays
  • Good Essays

    One of the most intriguing things to create is the human form. It is so complex and astounding that it never ceases to amaze when rendered.…

    • 787 Words
    • 4 Pages
    Good Essays
  • Good Essays

    In vector graphics, an image is represented as a collection of straight and curved line segments.…

    • 2555 Words
    • 9 Pages
    Good Essays
  • Satisfactory Essays

    As an animation major, I understand that drawing is not only a helpful but necessary skill in my field. Simply and bluntly put, if one cannot accurately draw the world and people around them, one cannot animate it. Animation is the art of the illusion of life, and that illusion cannot be created without a deep understanding of living things. Among the skills taught in Drawing 101 were gesture sketching, the utilization and identification of different line-making techniques, effective composition selection, color analysis and mixing, and pastel drawing. While every skill learned in Drawing 101 is fundamentally essential in my field, there are three that I feel are very useful in animation: gesture sketching, choosing a composition, and an…

    • 251 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Conics Paper

    • 298 Words
    • 2 Pages

    Ellipses are used in our everyday lives. It is important to know where they came from and how far they date back (Even though they have been here since the earth was created).…

    • 298 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Squares once again the square must be the Object A and the L shaped figure would have to be the proportional gnomon.…

    • 409 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Encolpius in the Satyricon and Lucius in Metamorphoses are each put in the role of outsiders on the fringes of society and are enabled to act as observers and commentators. Although they are viewed as outcasts and deal with the same types of scenarios, Encolpius and Lucius live in two completely different worlds. Encolpius and Lucius respond to their societies and the people they encounter in their own individual ways.…

    • 623 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Once, called away to an unanticipated school conference, I began drafting my short noticed speech with a yellow wooden pencil. Unfortunately this graphite loaded, eraser-tipped writing spear has become an alienated object as I readily admit my dependence on a new technology of writing. I found that I had become so used to composing virtual prose that I could no longer draft anything coherent directly onto a piece of paper. It wasn’t so much that I couldn’t think of the words, but the deliberate physical effort of handwriting, crossing out, revising, cutting and pasting was much too tedious. The writing practices that I had been engaged in regularly since the age of four, now seemed to overwhelm and constrict me as I longed for the flexibility of digitized text.…

    • 684 Words
    • 3 Pages
    Good Essays