<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>The Official Microsoft Expression Design Support Team Blog : stroke</title><link>http://blogs.msdn.com/xdesignsupport/archive/tags/stroke/default.aspx</link><description>Tags: stroke</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Clarification: Pressure Sensitivity in Expression Design</title><link>http://blogs.msdn.com/xdesignsupport/archive/2009/07/17/clarification-pressure-sensitivity-in-expression-design.aspx</link><pubDate>Fri, 17 Jul 2009 21:57:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9837758</guid><dc:creator>willbu</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/xdesignsupport/comments/9837758.aspx</comments><wfw:commentRss>http://blogs.msdn.com/xdesignsupport/commentrss.aspx?PostID=9837758</wfw:commentRss><description>&lt;p&gt;We have recently been able to clarify a confusing topic regarding pressure sensitivity support in Expression Design. The topic has come up in the forums a couple of times and we finally wanted to put this question to rest once and for all: Does Expression Design 2 and above support pressure sensitivity, even on a tablet PC?&lt;/p&gt;  &lt;p&gt;The answer is yes, however there is a catch. I’ll explain in just a moment. First let me bring everyone up to speed on just what is pressure sensitivity. You can draw freehand pictures using the paintbrush tool &lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/xdesignsupport/WindowsLiveWriter/ClarificationPressureSensitivityinExpres_EF61/image_thumb.png" width="22" height="21" /&gt; in Expression Design using a mouse. Instead of a mouse, you can also use pen-tablet devices such as Wacom tablets and Tablet PCs which use a stylus to draw freehand. It’s just like drawing with a pen and paper except you’re doing it electronically. So now let’s up the ante with pressure sensitivity. It’s really pretty simple – the harder you press with a stylus on the drawing pad, the thicker the line will be that you are drawing in the application. The lighter you draw with the stylus, barely touching the drawing pad as you sketch, the thinner the line will be on the screen. Nifty huh? Here’s a screenshot of an example of pressure sensitivity use in Expression Design 2. I used a Wacom Bamboo MTE-450A. &lt;/p&gt;  &lt;p&gt;&lt;img style="border-right-width: 0px; margin: 10px auto; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/xdesignsupport/WindowsLiveWriter/ClarificationPressureSensitivityinExpres_EF61/image_thumb_4.png" width="626" height="475" /&gt;&lt;/p&gt;  &lt;p&gt;I have labeled the areas where I applied minimal, light and heavy pressure to the pad. As expected, Expression Design 2 correctly interprets the pressure sensitivity and renders the strokes accordingly. You can also set the pressure sensitivity by &lt;a href="http://blogs.msdn.com/blogfiles/xdesignsupport/WindowsLiveWriter/ClarificationPressureSensitivityinExpres_EF61/image_12.png"&gt;&lt;img style="border-right-width: 0px; margin: 10px auto; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/xdesignsupport/WindowsLiveWriter/ClarificationPressureSensitivityinExpres_EF61/image_thumb_5.png" width="456" height="450" /&gt;&lt;/a&gt;     &lt;br /&gt;adjusting the “Pressure scale” setting under under the menu &lt;font color="#ffff00"&gt;Edit&lt;/font&gt; &amp;gt; &lt;font color="#ffff00"&gt;Options&lt;/font&gt; &amp;gt; &lt;font color="#ffff00"&gt;Stroke&lt;/font&gt;, as seen in the screenshot above.&lt;/p&gt;  &lt;p&gt;Okay, now that we’re up to speed on pressure sensitivity and we have established that, yes, Expression Design does support pressure sensitivity, I need to talk about the catch I mentioned earlier. &lt;a href="http://blogs.msdn.com/blogfiles/xdesignsupport/WindowsLiveWriter/ClarificationPressureSensitivityinExpres_EF61/image_14.png"&gt;&lt;img style="border-right-width: 0px; margin: 10px 0px 5px 10px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" align="right" src="http://blogs.msdn.com/blogfiles/xdesignsupport/WindowsLiveWriter/ClarificationPressureSensitivityinExpres_EF61/image_thumb_6.png" width="258" height="512" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;The catch is, pressure sensitivity &lt;u&gt;will not work&lt;/u&gt; with the default stroke. It will work with all other strokes in the stroke list, but not the default. What does that mean? Let’s take a look at one more screenshot to explain. Look at the screenshot to the right. The default stroke is the straight black line you see in the drop down box under under the color palette, to the left of the box with the label “width”. If you click the drop down arrow the stroke box expands and allows you to choose from a number of different types of custom strokes (also called “skeletal strokes”) to draw with.&lt;/p&gt;  &lt;p&gt;Hovering the mouse over each stroke will produce a tool tip with the strokes official name. The default stroke is officially called “Basic” and is located in the “&amp;lt;General&amp;gt;” category. This is the one stroke with which pressure sensitivity will not work. If you select any of the others then pressure sensitivity will work as intended. &lt;/p&gt;  &lt;p&gt;I did check with the developer team on this issue and the behavior of the “Basic” stroke not working with pressure sensitivity is intended, or by design. In other words, it’s not broken. &lt;/p&gt;  &lt;p&gt;So, to summarize: Expression Design does support pressure sensitivity, even on Tablet PCs. If you find that pressure sensitivity is not working for you then make sure you are not trying to use it with the “Basic” or default stroke as pressure sensitivity only works with Expression Designs custom (skeletal) strokes.    &lt;br /&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/xdesignsupport/WindowsLiveWriter/ClarificationPressureSensitivityinExpres_EF61/image_3.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/xdesignsupport/WindowsLiveWriter/ClarificationPressureSensitivityinExpres_EF61/image_thumb_1.png" width="105" height="105" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p align="right"&gt;&lt;em&gt;     &lt;br /&gt;- Will Buffington&lt;/em&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9837758" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/xdesignsupport/archive/tags/stroke/default.aspx">stroke</category><category domain="http://blogs.msdn.com/xdesignsupport/archive/tags/wacom/default.aspx">wacom</category><category domain="http://blogs.msdn.com/xdesignsupport/archive/tags/pressure+scale/default.aspx">pressure scale</category><category domain="http://blogs.msdn.com/xdesignsupport/archive/tags/tablet+pc/default.aspx">tablet pc</category><category domain="http://blogs.msdn.com/xdesignsupport/archive/tags/pressure+sensitivity/default.aspx">pressure sensitivity</category><category domain="http://blogs.msdn.com/xdesignsupport/archive/tags/tablet/default.aspx">tablet</category><category domain="http://blogs.msdn.com/xdesignsupport/archive/tags/stylus/default.aspx">stylus</category><category domain="http://blogs.msdn.com/xdesignsupport/archive/tags/sensitivity/default.aspx">sensitivity</category><category domain="http://blogs.msdn.com/xdesignsupport/archive/tags/skeletal/default.aspx">skeletal</category><category domain="http://blogs.msdn.com/xdesignsupport/archive/tags/pressure/default.aspx">pressure</category><category domain="http://blogs.msdn.com/xdesignsupport/archive/tags/custom/default.aspx">custom</category></item><item><title>Different Strokes</title><link>http://blogs.msdn.com/xdesignsupport/archive/2007/11/28/different-strokes.aspx</link><pubDate>Wed, 28 Nov 2007 23:55:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6585762</guid><dc:creator>willbu</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/xdesignsupport/comments/6585762.aspx</comments><wfw:commentRss>http://blogs.msdn.com/xdesignsupport/commentrss.aspx?PostID=6585762</wfw:commentRss><description>&lt;p&gt;I was going through the help files for Expression Design recently. They contain a lot of great information on how to get around the product and how to accomplish certain tasks. And then I read the help topic on creating custom strokes. Hrm. Kind of vague. There were several things I had to do in that weren't mentioned in the help to get a custom stroke looking the way I wanted. So let this week's blog be a supplement to the help files on creating custom strokes in Expression Design. &lt;/p&gt;  &lt;p&gt;First the basics about custom strokes. There are two types - line art and bitmap strokes. Line art strokes are just what it says, line art, which by default it black white and shades of gray. Bitmap strokes are color strokes made from a complete color bitmap or a portion of a color bitmap. For now, we'll focus on line art strokes.   &lt;br /&gt;    &lt;br /&gt;So how to get started - Create a design you want to see as a stroke. Click and drag the selection pointer over all of the objects that make up the image so that they are all selected. Then Click the Object menu from the top, Stroke, then New Stroke Definition. Something the help files don't mention - when creating line art strokes it's best to create them using black lines and/or fill. The reason is if you create line art strokes using color, Expression Design will render the stroke as a shade of gray. What's a bit misleading is when you click in the Stroke drop down box on the Properties menu, the stroke picture in the menu will retain the color you chose, but the actual stroke art applied to your stroke will show up as a shade of gray.&lt;/p&gt;  &lt;p&gt;&lt;img style="width: 592px; height: 601px" hspace="10" vspace="10" align="absMiddle" src="http://www.freewebs.com/willbu/strokes2.jpg" width="592" height="601" mce_src="http://www.freewebs.com/willbu/strokes2.jpg" /&gt;&lt;/p&gt;  &lt;p&gt;Notice that a new tab called &amp;quot;NoName&amp;quot; has appeared at the top of the workspace. You also see your line art in a big red box that has an arrow in it. Also, you have three new icons at the bottom of the screen. What's all this about? This new workspace is exclusively for your new stroke. The red box around the line art is called the 'Stroke Definition Box'. Basically whatever is in this box will be your new strokes entire being. Remember, strokes are applied to a single line and take the place of that line. The red arrow in the stroke definition box shows what direction your stroke will be applied from the from the beginning point of your line to the end point.&lt;/p&gt;  &lt;p&gt;&lt;img style="width: 712px; height: 654px" hspace="10" vspace="10" align="absBottom" src="http://www.freewebs.com/willbu/strokes3.jpg" width="712" height="654" mce_src="http://www.freewebs.com/willbu/strokes3.jpg" /&gt;&lt;/p&gt;  &lt;p&gt;With the selection arrow, click and drag around all of your line art again. You should now see a blue square with adorners inside the red square. In the example above, I'm going to make make this custom stroke repeating. What that means is the image is applied in its entirety and in its original form to a line. Huh? What? You'll see in a minute. Right click anywhere inside the blue square and click 'make repeating'. The blue square is gone and now you have two gray lines on either end of the stroke definition box also known as the red square with the pointy arrow. These gray lines are going to tell Expression Design where to begin and end your custom stroke. For perfect accuracy, you might want to zoom way in so you can get the gray lines perfectly matched with the line art. What you do with these gray lines is drag them inward so they don't leave any gaps between the end of your line art and the red box. In the picture below, notice the gray line it set slightly inward past the end of my line art; it's not flush with the line art cut-off. If you don't do this you may notice a white gap going down the middle of your line art, showing an obvious separation when you want it to be continuous.&amp;#160; &lt;br /&gt;    &lt;br /&gt;&lt;img style="width: 960px; height: 995px" hspace="10" vspace="10" align="absMiddle" src="http://www.freewebs.com/willbu/strokes4.jpg" width="960" height="995" mce_src="http://www.freewebs.com/willbu/strokes4.jpg" /&gt;&lt;/p&gt;  &lt;p&gt;Now all that's left is to save the stroke. Click File, Save. Give your stroke a name in the 'Name' box. The 'Folder' box refers to the categories in your stroke drop-down list in the properties panel. You can set this this to any of the categories, but for something like this, 'Graphics' might be the most appropriate location. The 'Default Width' is an important setting - don't just blow past it. By default, I've noticed that Expression Design tends to make the line art stroke very large, like over 200. For mine, I'm changing this number to 40. The larger you make this number, the larger your line art will be on the line which you are applying your custom stroke. Click Save. Time to test it out!   &lt;br /&gt;    &lt;br /&gt;You can go back to your original line art workspace or create a new one. I'm going to use the B-Spline tool to make a nice, curvy line. Now just apply your custom stroke from the Stroke drop down box. Remember, it will be located under the category you saved it to during the save process and will appear listed in alphabetical order according to what you named it. Here's a look at the finished product!&lt;/p&gt;  &lt;p&gt;&lt;img style="width: 1021px; height: 816px" hspace="10" vspace="10" align="absMiddle" src="http://www.freewebs.com/willbu/strokes5.jpg" width="1021" height="816" mce_src="http://www.freewebs.com/willbu/strokes5.jpg" /&gt;&lt;/p&gt;  &lt;p&gt;Now for bitmap strokes, you need to remember that Expression Design is a vector drawing program, so any bitmaps you want to make strokes out of need to be imported into your workspace. You will &lt;strong&gt;not&lt;/strong&gt; be able to import a bitmap image and then use a tool in Expression Design to crop out the piece you want to add as a stroke. You can use Windows Paint which comes with every Microsoft operating system to accomplish this task. An easy way to launch Windows Paint is to click Start, Run and just type paint and hit Enter or click OK.     &lt;br /&gt;    &lt;br /&gt;In the image below you can see that I've copied a bitmap of a Zune, &lt;a class="class" href="http://www.zune.net/" target="_blank" mce_href="http://www.zune.net"&gt;Microsoft's own portable music player&lt;/a&gt;, and cropped it and turned it sideways. I imported the Zune bitmap to my workspace. Using the selection arrow I selected the image and then clicked Object, Stroke, Define Image Stroke. Give it a name and select the folder in the stroke drop-down list that you want it to appear. Also, set your default width. On this dialog I notice that ED sets the size a bit small. The default on this image was 10, but I''' change it to 40.     &lt;br /&gt;    &lt;br /&gt;&lt;img style="width: 904px; height: 637px" hspace="10" vspace="10" align="absMiddle" src="http://www.freewebs.com/willbu/strokes6.jpg" width="904" height="637" mce_src="http://www.freewebs.com/willbu/strokes6.jpg" /&gt;&lt;/p&gt;  &lt;p&gt;The Alpha Channel window has three settings - no alpha, use original alpha value and grayscale. Alpha is the amount of transparency you want applied to your image. Setting no alpha will cancel any imported alpha effect on the BMP image; use original alpha value will retain this alpha value for any image that is brought into ED with an alpha value applied. Grayscale will convert the image to a black, white and shades of gray image. I will leave this set to 'No Alpha'.    &lt;br /&gt;The Body Section settings are important to understand. In our case, if we set 'do not repeat' in this section, the image would be stretched out the entire length of the line that we want to apply it to. If the line is longer than the image or curved in any way, the stroke will look badly distorted as in the image below. It's not really what I had in mind.&lt;/p&gt;  &lt;p&gt;&lt;img style="width: 591px; height: 419px" hspace="10" vspace="10" align="absMiddle" src="http://www.freewebs.com/willbu/Strokes7.jpg" width="591" height="419" mce_src="http://www.freewebs.com/willbu/Strokes7.jpg" /&gt;&lt;/p&gt;  &lt;p mce_keep="true"&gt;I've chosen a simple repeat for the body section, meaning the image is not stretched, but repeated seamlessly along the length of the line to which I'm applying the stroke. The number of parts repeated that you select for the 'Body Section' window indicates the number of times you will see the image repeated within one section of itself.    &lt;br /&gt;    &lt;br /&gt;The anchor head section length and anchor tail section length values indicate whether or not you want your stroke to overlap itself on the head (the left) of the image or the tail (the right) of the image. The number specified indicates a value in pixels, the amount you want overlapped from the left or right. One last thing to note about setting these values - you may notice that when you try to set a value, it may default to a much lower number. ED will only allow a certain percentage of the image to be anchored, so don't think you're going crazy. It's intentional.     &lt;br /&gt;    &lt;br /&gt;Now click OK to save the stroke. Try drawing a line and applying the stroke to it. Here's a shot of the finished product below.&lt;/p&gt;  &lt;p mce_keep="true"&gt;&lt;img style="width: 592px; height: 420px" hspace="10" vspace="10" align="absMiddle" src="http://www.freewebs.com/willbu/strokes8.jpg" width="592" height="420" mce_src="http://www.freewebs.com/willbu/strokes8.jpg" /&gt;    &lt;br /&gt;    &lt;br /&gt;Oh, one more thing I almost forgot to mention. If you want to experiment around with the settings and making your strokes, both BMP and line art, you can edit the stroke you're working on by clicking the drop down stroke list (see image below), click the stroke in the list, then click the little gear icon at the bottom of the window and then click Edit Stroke. When you save your settings, you will be prompted to overwrite the previously saved stroke. Also, if you have the stroke you just edited applied to a line on the workspace you should see it change automatically. Have fun with all them different strokes!&lt;/p&gt;  &lt;p mce_keep="true"&gt;&lt;img style="width: 172px; height: 531px" hspace="10" vspace="10" align="absMiddle" src="http://www.freewebs.com/willbu/strokes9.jpg" width="172" height="531" mce_src="http://www.freewebs.com/willbu/strokes9.jpg" /&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=6585762" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/xdesignsupport/archive/tags/custom+stroke/default.aspx">custom stroke</category><category domain="http://blogs.msdn.com/xdesignsupport/archive/tags/stroke/default.aspx">stroke</category></item></channel></rss>