问题标签 [resize]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
3176 浏览

php - BiCubic Shaper PHP 图像调整大小

Photoshop 有一个很棒的功能:用于调整大小的 BiCube Shaper 选项。

但是我找不到等价物。

我已经看到使用 GD 的各种代码,这些代码使用了 imagecopyresampled 和自定义 unsharp mask,但没有达到我期望的质量。

有什么帮助吗?

0 投票
3 回答
1746 浏览

java - 可调整大小的 Java 组件

我想要一个 Java 组件,它在组件的右下角有一个调整大小的图标,这样当我拖动该图标时,组件会自动调整大小。

通过调整图标大小,我的意思是:

在 Google Talk 中调整图标大小

上图包含 Google Talk Messenger 主窗口中的调整大小图标。是否有任何提供此功能的 Java 组件?

0 投票
2 回答
1574 浏览

c++ - MFC:捕获调整大小

只是想知道在调整整个窗口大小时触发的 MFC 应用程序中哪里最好放置功能。我在想 mainfrm 但我似乎无法捕获任何 OnSize 消息......

有人可以告诉我我做错了什么吗?

0 投票
2 回答
24179 浏览

wpf - 阻止用户调整用 WPF 编写的应用程序的顶级窗口大小的最佳方法是什么?

阻止用户调整用 WPF 编写的应用程序的顶级窗口大小的最佳方法是什么?

0 投票
11 回答
63407 浏览

php - 如何在 PHP 中调整具有透明度的 png 大小?

我正在尝试在 PHP 中调整具有透明背景的 png 大小,而我在网上找到的代码示例对我不起作用。这是我正在使用的代码,非常感谢您的建议!


更新 “不工作”我的意思是说当我调整 png 大小时背景颜色变为黑色。

0 投票
3 回答
8950 浏览

java - JEditorPane inside JScrollPane not resizing as needed

I am implementing a Comment box facility in my application which user can resize using mouse. This comment box contains a scrollpane which instead contains a JEditorPane in which user can insert comment. I have added the editor pane inside a scroll pane for the following reason:

auto scolling of jeditorpane

When the user resizes the comment box, I am setting the desired size for JScrollPane and the JEditorPane. When the user is increasing the size of the comment box, the size of these components are increasing as desired but when the size of the comment box is decreased, the size of the JEditorPane does not decrease even after setting the size. This leads to the scrollbars inside the scrollpane.

I tried using setPreferrredSize, setSize, setMaximumSize for JEditorPane. Still the size of the editor pane is not reducing. I tried calling revalidate() or updateUI() after the setting of size but no use.

I am using Java 1.4.2.

Please provide me some insight....

0 投票
2 回答
2592 浏览

java - 使用java进行服务器端图像重采样的库?

我想使用 jsp 创建一个重新采样(缩小)版本的图像。原始图像作为 blob 存储在数据库中。我想创建一个jsp,根据传递的图像宽度/高度(例如getimage.jsp?imageid=xxxx&maxside=200)提供质量不错(未像素化)的下采样图像。你能指出我可以从 jsp 页面调用的开源 api 或代码吗?

0 投票
6 回答
13852 浏览

image - Firefox - designMode:禁用图像大小调整句柄

如何防止用户在 designMode 中调整图像大小?(单击图像时禁用手柄)

0 投票
7 回答
8504 浏览

winforms - 调整大小时带有巨大黑色闪烁的蒙皮 C# 表单!

我正在尝试使用与您通常看到的不同的方法创建一些蒙皮表单(只是边框和标题),但是在调整表单大小时我遇到了表单闪烁的一些问题。

我不知道如何解释这个问题,所以这是我创建的一个视频来演示这个问题: http ://www.screencast.com/t/AIqK9Szmz

此外,这是一个 VS2008 测试解决方案,其中包含重新绘制表单边框的整个代码:http: //stuff.nazgulled.net/misc/TestForm.zip

希望有人能帮助我摆脱闪烁...

0 投票
5 回答
5054 浏览

c++ - 更改 C++ 向量的保留内存

我有一个包含 1000 个“节点”的向量

问题是当我要重新填充它时,我也将其清除。

容量不变。我使用了 resize(1); 但这似乎并没有改变容量。那么如何改变储备呢?