Jump to content

Request: Point of origin = center


Recommended Posts

I was wondering if it is at all possible to make the center of your picture x=0, y=0, and it goes out from there. I would find it much easier to draw things on an entire coordinate plane than just the one quadrant. This is simply for the little x/y indicator on the bottom right. just a little favor, I hope it can be done. :)

HellRiverSig3_stretch.png
Link to comment
Share on other sites

Artisticly speaking ( you caught one of my rare typos where I dont know how it is spelled ), the concepts of design and composition of good art isn't originating at the center.

Make a tic tac toe grid, the middle 4 corners are the points of focus

gridve2.jpg

Where the red dots are located are the focus points, or they can make an

L , _ , or | and be aligned like so, other shapes can be made, like that, but you see what I mean hopefully.

Just a tiny quick art lesson for you.

With your sig, I would say the main focus is the mans arm and bow, which lie across the bottom line of focus, and the bow goes up the right vertical line of focus....Which is elequently composed, I like it.

ravennm3.png
Link to comment
Share on other sites

Thanks :)

But, the reason I may want to center something, for example, is if I would like to use a radial blur to round up a circle, or something of that sort. Another solution is having the ability to use the center of your selection to be the center of an effect. Currently, no matter what you have selected the center is always the center of the entire piece.

HellRiverSig3_stretch.png
Link to comment
Share on other sites

If you need help making grids, here is a codelab script:

void Render(Surface dst, Surface src, Rectangle rect)
{
   int GridSize = 10;
   bool AlphaOnly = false;
   bool ForegroundOnly = false;
   bool SwapColors = false;

   PdnRegion selectionRegion = EnvironmentParameters.GetSelection(src.Bounds);
   Rectangle selection = this.EnvironmentParameters.GetSelection(src.Bounds).GetBoundsInt();
   ColorBgra CurrentPixel;
   ColorBgra PrimaryColor;
   ColorBgra SecondaryColor;
   if (SwapColors) {
       PrimaryColor = (ColorBgra)EnvironmentParameters.SecondaryColor;
       SecondaryColor = (ColorBgra)EnvironmentParameters.PrimaryColor;
   } else {
       PrimaryColor = (ColorBgra)EnvironmentParameters.PrimaryColor;
       SecondaryColor = (ColorBgra)EnvironmentParameters.SecondaryColor;
   }
   for(int y = rect.Top; y     {
       for (int x = rect.Left; x         {
           if (selectionRegion.IsVisible(x, y))
           {
               CurrentPixel = src[x,y];
               if ( ((x % GridSize) == 0) || ((y % GridSize) == 0)) 
               {
                   if (!AlphaOnly)
                   {
                       CurrentPixel.R = (byte)PrimaryColor.R;
                       CurrentPixel.G = (byte)PrimaryColor.G;
                       CurrentPixel.B = (byte)PrimaryColor.B;
                   }
                   CurrentPixel.A = (byte)PrimaryColor.A;
               } 
               else 
               {
                   if (!ForegroundOnly)
                   {
                       if (!AlphaOnly)
                       {
                           CurrentPixel.R = (byte)SecondaryColor.R;
                           CurrentPixel.G = (byte)SecondaryColor.G;
                           CurrentPixel.B = (byte)SecondaryColor.B;
                       }
                       CurrentPixel.A = (byte)SecondaryColor.A;
                   }
               }
               dst[x,y] = CurrentPixel;
           }
       }
   }
}

Click to play:
j.pngs.pngd.pnga.pngp.png
Download: BoltBait's Plugin Pack | CodeLab | and how about a Computer Dominos Game

Link to comment
Share on other sites

UI = User Interface.

Basically, it is the dialog box that asks you questions like, grid size, etc. then applys the effect when you press the OK button.

It also includes things like the icon and name you see in the effects menu.

EDIT: OK, Illnab1024 finished putting the polish on it. You can download the effects dll here: http://paintdotnet.12.forumer.com/viewtopic.php?t=2302

Click to play:
j.pngs.pngd.pnga.pngp.png
Download: BoltBait's Plugin Pack | CodeLab | and how about a Computer Dominos Game

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...