mask

Why is my jquery input mask not working?

故事扮演 提交于 2019-12-02 05:59:52
问题 I am trying to use the jQuery input mask plug-in (jquery.maskedinput-1.3.min.js), and I have searched for several examples/solutions, and my code is exactly as other working examples, but it simply won't work for me. Keep in mind my code is only testing this plug-in for now (trying to get it to work, which will explain why I am trying to apply a date input mask to a name field) My code lies below: HTML <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>Persons of Interest

Using an alpha transparent mask on a QWidget?

眉间皱痕 提交于 2019-12-02 03:41:19
问题 Is it possible to assign an alpha-transparent mask to a QWidget? I know how to set a mask using setMask but it seems it only supports black&white masks. Is it possible to make it support a true alpha channel? i.e. currently I have a PNG like this: and a widget like this: If I load my PNG in a QPixmap and set it as a mask, I get this (notice the edges): However I would like to get this (smooth edges): Any idea how to do that? Note: I'm doing some more complex drawing on the widget, which must

CAShapeLayer mask view

房东的猫 提交于 2019-12-02 03:03:41
I have one problem. I look for the answers on the net and I don't understand why is not working. I must do some stupid mistake which I can't figure it out. if I make : - (void)viewDidLoad { [super viewDidLoad]; UIView * view = [[UIView alloc]initWithFrame:CGRectMake(10, 10, 300, 400)]; view.backgroundColor = [UIColor blueColor]; [self.view addSubview:view]; } it create blue view on the screen, but if I make - (void)viewDidLoad { [super viewDidLoad]; UIView * view = [[UIView alloc]initWithFrame:CGRectMake(10, 10, 300, 400)]; view.backgroundColor = [UIColor blueColor]; [self.view addSubview:view

Why is my jquery input mask not working?

一世执手 提交于 2019-12-02 02:51:24
I am trying to use the jQuery input mask plug-in (jquery.maskedinput-1.3.min.js), and I have searched for several examples/solutions, and my code is exactly as other working examples, but it simply won't work for me. Keep in mind my code is only testing this plug-in for now (trying to get it to work, which will explain why I am trying to apply a date input mask to a name field) My code lies below: HTML <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>Persons of Interest</title> <link rel="stylesheet" type="text/css" href="/Default_Styler.css" /> <link rel="shortcut icon"

getNetworkPrefixLength() returns strange subnet mask

混江龙づ霸主 提交于 2019-12-02 02:45:02
问题 The following code: InetAddress localHost = Inet4Address.getLocalHost(); NetworkInterface networkInterface = NetworkInterface.getByInetAddress(localHost); for (InterfaceAddress address : networkInterface.getInterfaceAddresses()) { System.out.println(address.getAddress() + "/" + address.getNetworkPrefixLength()); } returns: /fe80:0:0:0:11da:433a:412a:8c23%13/64 /192.168.1.107/128 My subnet mask is /24, not /128. Is it a Java bug? 回答1: Maybe you hit this bug: http://bugs.sun.com/view_bug.do?bug

Using an alpha transparent mask on a QWidget?

别来无恙 提交于 2019-12-02 01:14:07
Is it possible to assign an alpha-transparent mask to a QWidget? I know how to set a mask using setMask but it seems it only supports black&white masks. Is it possible to make it support a true alpha channel? i.e. currently I have a PNG like this: and a widget like this: If I load my PNG in a QPixmap and set it as a mask, I get this (notice the edges): However I would like to get this (smooth edges): Any idea how to do that? Note: I'm doing some more complex drawing on the widget, which must be restricted to the mask area, so I cannot simply set my PNG as the widget's background image. sam-w I

Dragging one image makes other image to drag

戏子无情 提交于 2019-12-01 23:51:25
When i drag the right part of uploaded image in mask1 , than uploaded image in mask2 is dragging, but that should't happen.... Here is video link Also if i upload image only in mask 1 and try to drag, the image will disappear , but if i upload images in both masks, than image will not disappear video link2 Codepen : https://codepen.io/kidsdial/pen/PVJQrz <input type="file" id="fileupa" /> <input type="file" id="fileupb" /> <div class="container"> <div class="minaimg masked-imga" ondragover="onDragOver(event)"ondragover="onDragOver(event)" > <div draggable="true" ondragstart="onDragStart(event)

CSS: Gradient text colour?

孤人 提交于 2019-12-01 22:23:37
I'm trying to get some text to have a gradient colour, but I haven't a clue how. I'm trying to get it like this: The only thing I have tried is -webkit-mask , but I couldn't get that working how I wanted it to. The other thing would be -webkit-gradient in the color property - is that possible? Cross browser compatibility is fairly important, but not the end of the world. I'd prefer the text to be a solid colour in IE than to convert the entire thing into an image (there is quite a bit of text like this, some of it dynamic). For webkit based browsers (Chrome & Safari) : .text { font-size: 20px;

Format DateTime in C#

ぐ巨炮叔叔 提交于 2019-12-01 22:06:31
how can I format date to display in the following format 03-Feb-2011 I tried this statement but it did not work properly string.Format(visitDate.Value.ToShortDateString(), "dd-MMM-yyyy") bleeeah visitDate.Value.ToString("dd-MMM-yyyy"); Assuming visitDate is a DateTime. onof you have to use: visitDate.Value.ToString("dd-MMM-yyyy"); Nomadefv string.format is valid but the parameter order you use are invalid: DateTime? visitDate = null; System.Diagnostics.Debug.WriteLine(visitDate == null ? "" : String.Format("{0:dd-MMM-yyyy}", visitDate)); visitDate = DateTime.Now; System.Diagnostics.Debug

OpenGL ES: How to tint texture with color

自古美人都是妖i 提交于 2019-12-01 18:07:56
I have texture with alpha. And I want to tint it with some color, so it will be colored depending on color alpha value, but overal opacity will be defined only by texture alpha. This is similar to multi-texturing but with color instead of second texture. How to do it? (Updated) I have tried to set up texture combiner. Color is tinted fine, but there is problem with alpha - it doesn't take value from texture (like mask). My code at this moment: glActiveTexture (GL_TEXTURE0); // do we need stage #1? glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_COMBINE); glTexEnvi(GL_TEXTURE_ENV, GL_COMBINE