Jump to content

toe_head2001

Administrator
  • Posts

    5,029
  • Joined

  • Last visited

  • Days Won

    155

Posts posted by toe_head2001

  1. 2 hours ago, xod said:

    ... when the plugin starts, it automatically chooses the first font in the list of installed fonts -  one that starts with the letter A (Arial in most cases).

    Yes, but you have the FontFamily value initialized as 'Century Gothic', so that is what's used in the Render until the UI loads (the time span here is just a few milliseconds).

    Once the UI has loaded, the EffectToken updates (which includes the new value for the FontFamily... usually 'Arial'), and the Render is restarted.

     

  2. The 'Century Gothic' font is provided by MS Office. People who don't have Office installed will not be able to use this plugin.

    Spoiler
    
    C:\Program Files\paint.net\Effects\Clock.dll, version 1.0.6223.26977
    
    Name: Clock
    Type: ClockEffect.ClockEffectPlugin
    Version: 1.0.6223.26977
    Author: Copyright © xod
    Copyright: Render the clock.
    Website: http://www.getpaint.net/redirect/plugins.html
    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: Font 'Century Gothic' cannot be found.
       at System.Drawing.FontFamily.CreateFontFamily(String name, FontCollection fontCollection)
       at ClockEffect.ClockEffectPlugin..ctor()
       --- End of inner exception stack trace ---
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
       at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at PaintDotNet.Menus.EffectMenuBase.AddEffectsToMenu() in D:\src\pdn\src\PaintDotNet\Menus\EffectMenuBase.cs:line 602

     

     

    You'll want to use an alternative default font, or have a fallback font for when 'Century Gothic' fails.

    • Upvote 1
  3. 14 minutes ago, Chuck said:

    Traditional hard disk drive

    You could try defraging you hard drive; that should decrease the disk seek-time, and thus load the plugins faster.

     

    If you have the means, it is recommended to invest in a Solid State drive. Even the cheaper ones that connect over SATA are leaps and bounds faster than spinning hard drives.

  4. 23 minutes ago, dmesa99 said:

    will wide screen lower quality??

    Assuming your screen resolution is lower than the image's resolution, yes, it would be lower quality, or at least less detailed.

     

     

    Here's another option to try:

    1) Open the image in the Photos program

    2) Click on 'edit'

    3) Click on 'Sauna' filter, and then click on the 'Original' filter

    4) Click on 'Save a copy', and create the new image file

    5) Try to open the new copy in paint.net

  5. 43 minutes ago, ellwoodops said:

    > Line 936: MSI (s) (C8:E4) [16:08:05:515]: Product: paint.net -- Error 1316. The specified account already exists.

     

    That indicates paint.net was previously installed on your system, but the install has since become corrupted in some way or another.

    Please use this utility to remove paint.net:

    https://support.microsoft.com/en-us/help/17588/fix-problems-that-block-programs-from-being-installed-or-removed

     

    Afterwards, you'll then be a able to re-install paint.net anew.

  6. I don't like when paint.net crashes.

    CodeLab ought to handle these type of exceptions, and display the exception message in the Errors pane.

     

    EDIT: oh yeah, CodeLab already does that (duh).

    CodeLab (and thus paint.net) is crashing, because the error tooltip in the editor is trying to get CompilerError information (error line, error column, ect) from that item in the Errors pane. Those types of exception errors don't have CompilerError information, so a null reference crash happens. >:O

    Easy fix though. :D

     

    EDIT2: This was fixed in CodeLab v2.19.

    • Upvote 1
  7. Yeah, it's failing on DrawArc(), because there isn't enough space for your custom cap to be drawn. If you enclose DrawArc()in a try{} statement, you can watch as the caps slowly invert and then fail to draw as they become too close.

     

    try
    {
        g.DrawArc(gPen, centerX - arc1, centerY - arc1, arc1 * 2, arc1 * 2, 0, - angle);
    }
    catch
    {
    }

     

  8. On 12/4/2016 at 9:55 AM, Panchdara said:

    When there are plugins where there is no Author then that plugin is not listed when listing by Author, rather than showing a blank in the Author column (or show "Unknown"?)

    Done. Version 1.1.0.2 posted.

     

     

    Note to plugin authors whose plugins are listed under the "- unknown -" list item:

    Please don't forget to add author info to AssemblyCompany. For example:

    [assembly: AssemblyCompany("toe_head2001")]

    If you're using CodeLab, then it's obvious where the author info goes...

     

    I myself am guilty of leaving it blank in a few of my plugins. Those will be updated soon.

     

     

     

    On 12/4/2016 at 1:15 PM, Ego Eram Reputo said:

    Plugin Index has that info. If the Author field in the plugin is blank just populate it from the Index.

    Unfortunately, easier said than done. There aren't that many plugins without author info anyway, so not worth the effort.

    Creating an "- unknown -" list item only required adding 3 lines of code. :D

    • Upvote 2
×
×
  • Create New...