|
||||
Code:
Public Function CaptureRectangle(ByVal bmp As Bitmap, ByVal CapRect As Rectangle, ByVal CapRectWidth As Integer, ByVal CapRectHeight As Integer) As Bitmap Dim bmpImage As Bitmap = bmp Dim bmpCrop As New Bitmap(CapRectWidth, CapRectHeight) Dim recCrop As New Rectangle(CapRect.X, CapRect.Y, CapRectWidth, CapRectHeight) Dim gphCrop As Graphics = Graphics.FromImage(bmpCrop) Dim recDest As New Rectangle(0, 0, CapRectWidth, CapRectHeight) Dim attr As New System.Drawing.Imaging.ImageAttributes gphCrop.DrawImage(bmpImage, recDest, recCrop.X, recCrop.Y, recCrop.Width, recCrop.Height, GraphicsUnit.Pixel, attr) gphCrop.Dispose() Return bmpCrop End Function 'Define these to the section you want to crop out of the picture Dim startX, startY, cWidth, cHeight as Integer Dim oldbmp as Bitmap = new Bitmap("C:\MyPicture.jpg") Dim newbmp as Bitmap = captureRectangle(oldbmp, new Rectangle(startX,StartY,cWidth,cHeight), cWidth, cHeight)
__________________
Projects: (SlideSound) (Personal OEMizer (1.4.0 )) (TDial Designer (v1.1.1 )) (TierAutoinstall (1.9)) and more...
HTC Sliding Sound Control Panel replacement. | SprintTV on Mogul? Donations appreciated |
|
||||
Sorry. Don't know why, but I think my account is suspended on that server. I'll attach b1.06 for now and try to find someplace to move my page.
Maybe I got too many hits from putting up that WM6 mirror list :P Edit: The site is back up. Maybe their server just broke for a while. Newer version is in my sig. Last edited by tiermann; 09-08-2007 at 06:44 PM. |
|
||||
Things to come..
I made a new button set, but I'll put that out later tonight. I still haven't added the code to generate the "downbuttons" yet since there were no other button sets before. You will have the option to pick all the colors and blending for the down buttons as well. |
|
||||
Update: (b1.08 )
-All settings except "Style" and Background Image can be saved for next run. (See the File menu) You can choose to "Save Current Settings" or have it save every time you exit. I thought this would be a useful addition since the amount of options has increased so much since the beginning. -TDialDesigner uses a "TDial.ini" file now for settings instead of the registry so you'll have to choose what type of resizing you want for the background images again. I did this for people who like the whole application and settings to be portable for usb keys, etc. Also, if you want to go back to stock settings you can always delete the TDial.ini and restart the app. PS: I just realized that I forgot to have it load the setting for "Hide Carrier Logo/Text" from the ini, but that's minor. I'll fix for next time. Big Update: (b1.07) -New "TahomaDigits" button set included. Look in Options->Styles -It now generates downbuttons. -You can pick the colors and alpha of the downbuttons as well. -All buttons on the dialer preview pictures are clickable now. When the left mousebutton is down over one of the digits it will show you the downbutton image. Before anyone asks, this is not a bug... On the progress screen, if you click a button other than the "talk" button, the background for the downbutton is a solid color. This is because the dialer itself uses the same image for those 5 command buttons so I can't have it draw the background on the button (it wouldn't line up with the bg image and they'd all the same cutout). If you wish to have a transparent bg for down buttons on the progress screen, leave the progress bg alpha for downbutton at 0%. This pic shows the new layout with my mouse down over the 5 button... Let me know if there are any bugs, like your dialer not coming out how you wanted it to, etc. I changed a lot of code around so I may have missed something. Last edited by tiermann; 09-08-2007 at 12:38 PM. |
|
||||
Great work! I like the larger number style. A question though. I want to edit the status box but find that you can not change it without using some kind of picture. Could that be set to a color as well? I hate the blue background this dialer comes with now.
I noticed that you lose the letters with the fatter digits but looks like there is space to run them vertically to the right of the digits? For those that need the letters Last edited by Ruinit; 09-08-2007 at 02:15 PM. |
|
||||
Sorry but before I put on my first skin. I have a folder called MySkin that I saved. Where do I put that whole folder? Or do I just copy the files you have listed in the first post?
Thanks Never mind this post copied all files from MySkin into \windows overwriting every thing and it works fine Last edited by Ruinit; 09-08-2007 at 03:10 PM. |
|
||||
Quote:
Quote:
PS: I see you figured it out. All the files go directly into \Windows. |
|
|
|