const currentPage = dv.current().file;
const dailyPages = dv.pages('"0-Daily"').sort(k=>k.file.name, "asc");
const currentPageName = currentPage.name;
const index = dailyPages.findIndex((e) => {return e.file.name === currentPageName});
if (index < 1) {
dv.table(["File", "Created", "Size"],[]);
} else {
const lastIndex = index - 1;
const lastPage = dailyPages[lastIndex].file;
const allPages = dv.pages().values;
const searchPages = [];
const lastTime = dv.parse(lastPage.name);
const currentTime = dv.parse(currentPage.name);
for (let page of allPages) {
const pageFile = page.file;
if (pageFile.cday > lastTime && pageFile.cday <= currentTime) {
searchPages.push(pageFile);
}
}
dv.table(["File", "Created", "Size"], searchPages.sort((a, b) => a.ctime > b.ctime ? 1 : -1).map(b => [b.link, b.ctime, b.size]));
}
Java Api RenderingHints
Controlling Rendering Quality (The Java™ Tutorials > 2D Graphics > Advanced Topics in Java2D)
- LCD Text Contrast
- Text Antialiasing
- Stroke Normalization Control
- Rendering
- Image Interpolation
- Fractional Text Metrics
- Dithering
- Color Rendering
- Alpha Interpolation
- Antialiasing
Java Graphics2D的RenderingHints方法参数详解
Java Image Library
How Can I Resize an Image Using Java?
2023-08-0#Java Image Scaling Library
Java Graphics 介绍
如何设置图像的 DPI 信息
java - How to set DPI information in an image? - Stack Overflow
Bytebuddy 处理静态方法
Trouble instrumenting java.io.File constructor · Issue324 · raphw/byte-buddy · GitHub
Note
问题:
Caused by: java.lang.IllegalStateException: Cannot map this reference for static method or constructor start: public java.io.File(java.lang.String)
原因:
Advice.OnMethodEnter cannot reference Advice.This, this is documented in the Javadoc of Advice.ThisIt is also in the exception:
“Cannot map this reference for static method or constructor start”At the beginning of the constructor “this” does not yet exist. it only works at the end of the constructor.