Help-Can't get borders sharp or square corners.

Help-Can't get borders sharp or square corners.

Post by Crede Calho » Wed, 25 Dec 1996 04:00:00



I am just learning photoshop. Any help would be appreciated.

When I select a photo with rectangular selection marquee. And then
Modify selection with Border command, and then fill border Iget
a rectangle with faded edges and rounded corners.

What am I doing wrong. I want crisp borders for inset photos.

Thanks in advance.

Crede Calhoun

 
 
 

Help-Can't get borders sharp or square corners.

Post by Lanny Chambe » Wed, 25 Dec 1996 04:00:00




> When I select a photo with rectangular selection marquee. And then
> Modify selection with Border command, and then fill border Iget
> a rectangle with faded edges and rounded corners.

> What am I doing wrong. I want crisp borders for inset photos.

You might have just missed the best tip for adding a border to a photo:

Increase the canvas size by a few pixels, then fill the extra area with
your border color. Make sure anti-aliasing is off if you use the paint
bucket tool.


Visit the Hummingbird Page: <http://www.derived.com/~lanny/hummers>

 
 
 

Help-Can't get borders sharp or square corners.

Post by Walt William » Thu, 26 Dec 1996 04:00:00





> > When I select a photo with rectangular selection marquee. And then
> > Modify selection with Border command, and then fill border Iget
> > a rectangle with faded edges and rounded corners.

> > What am I doing wrong. I want crisp borders for inset photos.

> You might have just missed the best tip for adding a border to a photo:

> Increase the canvas size by a few pixels, then fill the extra area with
> your border color. Make sure anti-aliasing is off if you use the paint
> bucket tool.


> Visit the Hummingbird Page: <http://www.derived.com/~lanny/hummers>

If you're on the Background layer, when you increase the canvas size the
background color will automatically fill the additional area - thus
saving you from having to use the paint bucket.
 
 
 

Help-Can't get borders sharp or square corners.

Post by M. Valkie » Fri, 27 Dec 1996 04:00:00


Hi Crede,

Quote:> When I select a photo with rectangular selection marquee. And then
> Modify selection with Border command, and then fill border Iget
> a rectangle with faded edges and rounded corners.

> What am I doing wrong. I want crisp borders for inset photos.

Hehehe, I've been looking for a fix for that problem a long time,
but just recently I looked up the 'Stroke' function, and voila, just set
the foreground color right and stroke the selection..

It will do the job just perfectly...

 
 
 

1. Help finding square from diagonal corners

I've worked out an algorithm for calculating the remaining corners of a square
when two diagonal corners are known.  It seems overly complicated to me and I
was hoping if I posted it here someone might be able to advise me on how to
simplify it (or maybe point me to some resources that will aid me).  If it
isn't evident I'm not well-practiced in the areas of geometry or computer
graphics, so be gentle.  After I had some idea of what I needed to do I pretty
much filled out the algorithm through trial and error.

Sorry if it is too hard to read.  I tried my best.

Joel Moore

------------------------
dl = Diagonal Length
sl = Side Length
da = Diagonal Angle
fk = First Known Corner
sk = Second Known Corner
fc = First Calculated Corner
sc = Second Calculated Corner
-------------------------------------------------
dl = SquareRoot((fk.x - sk.x)^2 +
                    (fk.y - sk.y)^2)
sl = Cos(PI/4) * dl

IF (fk.x EQUALS sk.x)
  IF (fk.y IS LESS THAN sk.y)
    da = 0.5*PI (diagonal lies on +Y axis)
  ELSE
    da = 1.5*PI (diagonal lies on -Y axis) (8)
  END IF
ELSE IF (fk.y EQUALS sk.y)
  IF (fk.x IS LESS THAN sk.x)
    da = 0 (diagonal lies on +X axis) (5)
  ELSE
    da = PI (diagonal lies on -X axis) (7)
  END IF
ELSE
  IF (fk.x IS LESS THAN sk.x)
    IF (fk.y IS LESS THAN sk.y)
      da = ArcTan((fk.x - sk.x)/(fk.y - sk.y))
      (diagonal lies in Quadrant 1)
    ELSE
        da = (2 * PI) + ArcTan((fk.x - sk.x) / (fk.y - sk.y))
        (diagonal lies in Quadrant 4)
    END IF
  ELSE
    IF (fk.y IS LESS THAN sk.y)
      da = PI + ArcTan((fk.x - sk.x) / (fk.y - sk.y))
      (diagonal lies in Quadrant 2)
    ELSE
      da = PI + ArcTan((fk.x - sk.x) / (fk.y - sk.y))
      (diagonal lies in Quadrant 3)
    END IF
  END IF
END IF

IF (Diagonal lies in Quadrant 1 or 3) THEN
  fc.x = fk.x - Cos(da + (PI / 4)) * sl
  fc.y = fk.y + Sin(da + (PI / 4)) * sl
  sc.x = fk.x + Cos(da - (PI / 4)) * sl
  sc.y = fk.y - Sin(da - (PI / 4)) * sl
ELSE IF (Diagonal lies in Quadrant 2 or 4) THEN
  fc.x = fk.x + Cos(da + (PI / 4)) * sl
  fc.y = fk.y - Sin(da + (PI / 4)) * sl
  sc.x = fk.x - Cos(da - (PI / 4)) * sl
  sc.y = fk.y + Sin(da - (PI / 4)) * sl
ELSE IF (Diagonal lies on +X, +Y, or -Y axis) THEN
  fc.x = fk.x + Cos(da + (PI / 4)) * sl
  fc.y = fk.y + Sin(da + (PI / 4)) * sl
  sc.x = fk.x + Cos(da - (PI / 4)) * sl
  sc.y = fk.y + Sin(da - (PI / 4)) * sl
ELSE IF (Diagonal lies on -X Axis) THEN
  fc.x = fk.x + Cos(da + (PI / 4)) * sl
  fc.y = fk.y + Sin(da + (PI / 4)) * sl
  sc.x = fk.x + Cos(da - (PI / 4)) * sl
  sc.y = fk.y - Sin(da - (PI / 4)) * sl
END IF

2. html help watned

3. Expand selection/keep sharp corners?

4. Getting Alpha data from the card in WinNT 4.0 with a GeForce

5. Sharp rectangle corners

6. sharpen algorithm?

7. Border between light and shadow sharp on sphere

8. Plugin or Upgrade Question?

9. Adding Corners to Square Images

10. How To Round off the corner of a square

11. how to: rounder corner square

12. how to make a sharper gif border?