Sam Ingrassia

Greenhorn
+ Follow
since Feb 18, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Sam Ingrassia

Thanks to everyone in advance -

I cannot seem to figure out why I wouldnt receive multiple groups back from this match. I would assume I would receive:

[hello]
[john]


instead i am getting:

[hello]
[hello]

It seems like the regex stops after the first match is found, which leads me to believe that it has to do with some sort of flag -




Thanks,

Sam
14 years ago
Thank you very much for the reply -


So I dropped in TYPE_INT_ARGB in and it gave me the error "java.io.IOException: Image can not be encoded with compression type BI_RGB", after looking into that a bit, I set the "getImageWritersByFormatName" to use PNG instead of BMP (I guess BMP doesnt support transparency, or it does, but no one ever implements it). This time though the image that I am overlaying colors were modified and the background is still black : )

Any suggestions?

Thanks,

Sam
15 years ago
Thanks to everyone in advance -

I have created an image resizing class, with a crop method. The cropping works great, the issue that I am having is the background color that i specify in the drawImage function of Graphics is not working correctly, it defaults everything to black. Here is the code below that I am working with, I have also included the SaveTo method so you can see how I am saving as well

Thanks,

Sam


15 years ago
Thanks to everyone in advance -

Coming from other languages such as PHP, the DateTime object has max and min dates that the respective object will allow. For instance PHP's DateTime is:

$MinValue = "1901-12-13 20:45:54";
$MaxValue = "2038-01-19 03:14:07";

And C#:

DateTime.MaxValue
DateTime.MinValue

I have played around with calendars getMinimum/getMaximum methods and here is what I come up with

this is the minimum date - Thu, 1 Jan 0001 00:00:00 -0700 (does not change)

this is the max date - Wed, 17 Apr 292269054 21:34:07 -0700 (the second is constantly changing)

Am I on the right path or is there a better way to get max/min Calendar dates that are constant?


Thanks,

Sam




15 years ago