Skip to content

Commit

Permalink
small improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
lbalazscs committed Jan 8, 2025
1 parent e3f5347 commit 286f042
Show file tree
Hide file tree
Showing 116 changed files with 1,146 additions and 980 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/jhlabs/image/GlowFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ public BufferedImage filter(BufferedImage src, BufferedImage dst) {

BufferedImage srcCopy = ImageUtils.copyImage(src);

int[] inPixels = ImageUtils.getPixelArray(src);
int[] inPixels = ImageUtils.getPixels(src);

if (radius > 0) {
BoxBlurFilter boxBlur = new BoxBlurFilter(radius, radius, 3, filterName);
srcCopy = boxBlur.filter(srcCopy, srcCopy);
}

int[] outPixels = ImageUtils.getPixelArray(srcCopy);
int[] outPixels = ImageUtils.getPixels(srcCopy);

float a = 4 * amount;

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/jhlabs/image/PointFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ public BufferedImage filter(BufferedImage src, BufferedImage dst) {
return grayFilter(src, dst);
}

int[] inPixels = ImageUtils.getPixelArray(src);
int[] outPixels = ImageUtils.getPixelArray(dst);
int[] inPixels = ImageUtils.getPixels(src);
int[] outPixels = ImageUtils.getPixels(dst);

pt = createProgressTracker(height);
Future<?>[] rowFutures = new Future[height];
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/pixelitor/Canvas.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2024 Laszlo Balazs-Csiki and Contributors
* Copyright 2025 Laszlo Balazs-Csiki and Contributors
*
* This file is part of Pixelitor. Pixelitor is free software: you
* can redistribute it and/or modify it under the terms of the GNU
Expand Down Expand Up @@ -250,7 +250,7 @@ public boolean hasDifferentSizeThan(BufferedImage img) {
return width != img.getWidth() || height != img.getHeight();
}

public PPoint getRandomPoint(View view) {
public PPoint genRandomPoint(View view) {
return PPoint.lazyFromIm(Rnd.nextInt(width), Rnd.nextInt(height), view);
}

Expand Down
Loading

0 comments on commit 286f042

Please sign in to comment.