Sepcot

Members
  • Content count

    63
  • Joined

  • Last visited

Community Reputation

0

About Sepcot

  • Birthday 01/01/1970

Profile Information

  • Location
    Chicago

Contact Methods

  • Website URL
    http://www.sepcot.com
  1. Headache for a plugin...

    Moving from Horizontal to Vertical is not as easy as just changing Left and Right to Bottom and Top. Paint.NET currently passes scanlines into the Render loop (and as Rick has said, this might not always be the case, so your Horizontal code could be wrong in the future). Since scanlines are going into your render loop, rect.Bottom - rect.Top [height] is going to be equal to 1. So far starters, use selection instead of rect when calculating the width and height of the total selection. This does NOT solve how to draw vertically, since each pass into the render function will generate a new random number, but this should help you understand where you are going wrong and get back on track.
  2. Headache for a plugin...

    Moving from Horizontal to Vertical is not as easy as just changing Left and Right to Bottom and Top. Paint.NET currently passes scanlines into the Render loop (and as Rick has said, this might not always be the case, so your Horizontal code could be wrong in the future). Since scanlines are going into your render loop, rect.Bottom - rect.Top [height] is going to be equal to 1. So far starters, use selection instead of rect when calculating the width and height of the total selection. This does NOT solve how to draw vertically, since each pass into the render function will generate a new random number, but this should help you understand where you are going wrong and get back on track.
  3. You can't run any effect directly from CodeLab, but if you are interested in Clouds... I have the CodeLab version of my Clouds Plugin (not the built in Clouds effect that comes with PDN 3.x) here: http://paintdotnet.12.forumer.com/viewtopic.php?t=1971
  4. I'm not sure what you are trying to do, but you probably want to use GetIntensity(). But, you can't just assign the value of the 'brightness' back, you need to adjust the ColorBgra itself. Take a look at the source for BrightnessAndContrastAdjustment.cs
  5. How write plug-ins for Paint. Net?

    This has been renamed to PaintDotNet.Core.dll
  6. Barcode Plugin

    Fixed. I refractored a lot of my code and added a BarcodeSurface class to pre-render a given barcode before it gets drawn to the destination surface. POSTNET support added. See original post for download links.
  7. Barcode Plugin

    Ah, I think I have figured out a fix for this, but I don't have Visual Studio at work... look for an update next week... If my fix works, I should be able to implement POSTNET as well.
  8. Barcode Plugin

    Well, 'Sepcot.com' was encoded with Code 39, so it should be read in as 'SEPCOT.COM' (all uppercase, no lower case letters in Code 39) and there is no ';' character in Code 39 (there is in Full ASCII Code 39) so that is probably related to the language.
  9. Barcode Plugin

    I had to learn how to generate barcodes for a project I was working on at work... it was easy enough to turn it into a plugin...
  10. Version 1.1.x of my Paint.NET Barcode Plugin is completed. Note: I do not have access to a barcode reader and have not checked the validity of the barcodes, but they should be accurate =) Version 1.1.x supports Code 39 and POSTNET barcodes, as well as fixes some rendering issues. 'Sepcot.com' encoded with Code 39 '12345' encoded with POSTNET These files have been recompiled by @eladkarako. The new versions are available here: http://forums.getpai...post__p__325391 For more information about what is going on in the code you can visit: http://www.sepcot.co...-Barcode-Plugin http://www.sepcot.co...ode-Plugin-v1_1
  11. Updated! Effects Plugin Template All of BoltBait's points above have been addressed. [*:58569]Added SubMenu Option. [*:58569]Buttons anchored. [*:58569]Token file updated. Added getter/setter example. [*:58569]Added reference to PaintDotNet in Configuration Dialog
  12. Layer - Rotate/zoom

    At angle: 180, you can see the image actually moves 1px to the right and 1px down... To reproduce: create 30x30 image, gradient filled. Duplicate layer. Resize canvas to 36x36 (any even increase will work). Rotate top layer. @90, the top layer moves down one pixel. @180 it also moves right one pixel.
  13. Nice work BoltBait. I'm interested in seeing your anti-alias implementation.
  14. I had to use the direct download as well, kept getting a 404 error.
  15. How to start a fire with Paint.NET

    In 2.72 I believe the Look for Updates option was under the File menu (in a sub-menu, don't remember what it was called).