Skip to content

Commit

Permalink
Added supportsSvgImageFormat() test method in WebFX kit
Browse files Browse the repository at this point in the history
  • Loading branch information
salmonb committed Oct 11, 2023
1 parent c349ec7 commit 6d87b4b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,12 @@ private static Rectangle2D toRectangle2D(double width, double height) {
}

@Override
public boolean supportsWebP() {
public boolean supportsSvgImageFormat() {
return true;
}

@Override
public boolean supportsWebPImageFormat() {
return supportsWebPJS();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,12 @@ public static double getVerticalScrollbarExtraWidth() {
return getProvider().getVerticalScrollbarExtraWidth();
}

public static boolean supportsWebP() {
return getProvider().supportsWebP();
public static boolean supportsSvgImageFormat() {
return getProvider().supportsSvgImageFormat();
}

public static boolean supportsWebPImageFormat() {
return getProvider().supportsWebPImageFormat();
}

public static FastPixelReaderWriter getFastPixelReaderWriter(Image image) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ default double getVerticalScrollbarExtraWidth() {
return 0;
}

default boolean supportsWebP() { return false; }
default boolean supportsSvgImageFormat() { return false; }

default boolean supportsWebPImageFormat() { return false; }

FastPixelReaderWriter getFastPixelReaderWriter(Image image);

Expand Down

0 comments on commit 6d87b4b

Please sign in to comment.