16,016,760 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by ketan Ram Patil (Top 68 by date)
ketan Ram Patil
30-Jul-19 8:58am
View
try this link := https://stackoverflow.com/q/55686040/11362349
ketan Ram Patil
29-Jul-19 10:14am
View
i have shared the guit hub link "https://github.com/patilketan888/Scan-Image-in-UWP.git"
please go through it and download the UWPUIResponsive zip so you will get the idea. from which i want to make the header size responsive and add user page.
ketan Ram Patil
29-Jul-19 10:12am
View
Deleted
<grid>
<visualstatemanager.visualstategroups>
<visualstategroup>
<visualstate>
<visualstate.statetriggers>
<adaptivetrigger minwindowwidth="500">
<visualstate.setters>
<setter target="TitleColumn.Width" value="Auto">
<setter target="HolderColumn1.Width" value="Auto">
<setter target="HolderColumn2.Width" value="Auto">
<visualstate>
<visualstate.statetriggers>
<adaptivetrigger minwindowwidth="750">
<visualstate.setters>
<setter target="TitleColumn.Width" value="20*">
<setter target="HolderColumn1.Width" value="*">
<setter target="HolderColumn2.Width" value="*">
<grid x:name="p" borderbrush="Silver" borderthickness="0,0,1,1">
<grid.columndefinitions>
<columndefinition width="*" x:name="HolderColumn1">
<columndefinition width="20*" x:name="TitleColumn">
<columndefinition width="Auto" x:name="AccountColumn">
<columndefinition width="*" x:name="HolderColumn2">
<stackpanel orientation="Horizontal" grid.column="1">
<stackpanel grid.column="2" borderbrush="Silver" verticalalignment="Center" borderthickness="1,0,0,0" margin="15,0,0,0" padding="15,0,0,0">
<grid>
<grid.columndefinitions>
<columndefinition width="Auto">
<columndefinition width="Auto">
<columndefinition width="Auto">
<stackpanel verticalalignment="Center">
<textblock fontsize="14" text="" textwrapping="Wrap" name="TBUserName" foreground="#27aae1" textalignment="right" fontweight="Bold">
<textblock fontsize="13" text="Admin" textwrapping="Wrap" name="TBRole" foreground="#414042" textalignment="right">
<textblock.rendertransform>
<compositetransform scaley="1">
<button.rendertransform>
<compositetransform scalex="1" scaley="1">
<button.template>
<controltemplate>
<button.flyout>
<menuflyout x:name="settings">
<menuflyoutitem text="Profile">
<menuflyoutitem text="Sign Out">
ketan Ram Patil
29-Jul-19 5:40am
View
Thank you for your valuable reply.
would you please answer this question. https://stackoverflow.com/q/57250223/11362349
ketan Ram Patil
29-Jul-19 5:39am
View
would you please answer this question https://stackoverflow.com/q/57250223/11362349
ketan Ram Patil
29-Jul-19 5:24am
View
i want to ask a question is what is the difference if i am creating project directly in uwp and in xamarin ?
ketan Ram Patil
29-Jul-19 5:22am
View
i am directly created project in uwp would you please download the project form given link and make the add user page responsive so i can apply same logic for all pages :(
ketan Ram Patil
25-Jul-19 9:06am
View
DMS means document management system where you can store the documents. and responsive means ui will adjust automatically and display according to the screen size .
ketan Ram Patil
25-Jul-19 7:51am
View
yes sure link - https://stackoverflow.com/questions/55686040/xamarin-form-taskcanceledexception-thrown-on-scanfilestofolderasync
ketan Ram Patil
18-Apr-19 10:00am
View
thank you for your reply :) yes i allowed give all permission to access the folder. :)
and the given issue solved their is issue in scanner drivers so after reinstall its solved. :)
thanks again. Have a great day :)
ketan Ram Patil
10-Apr-19 1:03am
View
thank you for your valuable reply. do you have any code example or link which scan image(or document) through scanner in uwp
ketan Ram Patil
6-Mar-19 0:18am
View
thank you for your valuable reply. please share your code behind code
ketan Ram Patil
1-Mar-19 5:20am
View
thank you for your reply. i referred above links. would you please give me any data grid style example in uwp xamarin in xaml format. :(
ketan Ram Patil
28-Feb-19 23:06pm
View
thank you for your valuable reply. i want to change the datagrid header font and background.
ketan Ram Patil
3-Jan-19 10:05am
View
so using the mvc or webforms can i use my wpf design code (xaml) ?
ketan Ram Patil
3-Jan-19 9:32am
View
thank you for your valuable replay sir actually my windows base application is ready using wpf and wcf but now i dont know how to convert this window base applicaion to web base. how to use this wpf code in asp.net
ketan Ram Patil
29-Jun-18 7:24am
View
no actually my project having so many windows and each window having many controls and i am getting all windows controls same error behind code :(
ketan Ram Patil
6-Apr-18 2:34am
View
thanks for your valuable replay have a gr8 day.. :)
ketan Ram Patil
15-Mar-18 5:29am
View
do you have any sample code or link. so i can understand clearly
ketan Ram Patil
15-Mar-18 5:21am
View
do you have any sample code... :(
ketan Ram Patil
14-Feb-18 1:44am
View
thank you for your valuable replay.. :)
yes i seen in the regedit " HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{6bdd1fc6-810f-11d0-bec7-08002be2092f} "
after class it shows so many devices list but this devices not connected to computer.
don't know what to do now :(
ketan Ram Patil
8-Feb-18 2:06am
View
thanks for your valuable replay.. please suggest any project Link ..
ketan Ram Patil
8-Jan-18 4:18am
View
thanks for your valuable replay. :)
But i want to know the size of each column Data type.
eg.if column Product contain string data type then how to retrive the actual size of string data type.
i want to create a new table from the datatable.
so to create a new table i am able to retrieve the column name and data type but not able retrieve actual datatype size :( ????????
ketan Ram Patil
17-Nov-17 5:14am
View
its solved :)
its an answer.
ketan Ram Patil
15-Nov-17 6:00am
View
Oh sorry.. :(
then i will wait for the solution.
thanks for the advice :)
ketan Ram Patil
15-Nov-17 5:49am
View
yes i know. i cant solve this User Control Problem So i am trying to change the scan way.
and i cant pass the User control Object to WPFWINDOWSMESSAGEHOOK :(
i am search on internet different website but not getting solution for this problem. :(
do you have any idea. about this messagehook ?
ketan Ram Patil
8-Nov-17 5:19am
View
Thank you For your valuable replay. i am also checked in the file explorer dll size is not empty.
:(
ketan Ram Patil
8-Nov-17 0:24am
View
Thank you For your Valuable Replay.. It works Perfectly.
:)
after debugging i got the Error and also solution...
ketan Ram Patil
4-Nov-17 1:50am
View
Please Help i tried so many times... but i cant convert this c# code to vb :(
ketan Ram Patil
3-Nov-17 4:43am
View
thanks for your valuable replay.. :)
Now the problem is i dont know how to convert this C# code
public Window1()
{
InitializeComponent();
Loaded += delegate
{
_twain = new Twain(new WpfWindowMessageHook(this));
_twain.TransferImage += delegate(Object sender, TransferImageEventArgs args)
{
if (args.Image != null)
{
resultImage = args.Image;
IntPtr hbitmap = new Bitmap(args.Image).GetHbitmap();
MainImage.Source = Imaging.CreateBitmapSourceFromHBitmap(
hbitmap,
IntPtr.Zero,
Int32Rect.Empty,
BitmapSizeOptions.FromEmptyOptions());
Gdi32Native.DeleteObject(hbitmap);
}
};
_twain.ScanningComplete += delegate
{
IsEnabled = true;
};
var sourceList = _twain.SourceNames;
ManualSource.ItemsSource = sourceList;
if (sourceList != null && sourceList.Count > 0)
ManualSource.SelectedItem = sourceList[0];
};
}
to VB
ketan Ram Patil
3-Nov-17 2:18am
View
i am converting the code behind C# code to VB . i am also referred the telerik website and so many , but its not converting the c# code into VB without an single error.
i want to create the WPF vb project as same as C# scanner project.
ketan Ram Patil
2-Nov-17 3:23am
View
its really Help Me a Lot...... :)
Thank you Very Much... :)
Have a Good Day.. :)
ketan Ram Patil
12-Oct-17 4:41am
View
I am using the HP scanner Which having Auto feeder and Flat Bed Scan Functions.
i scanning the Documents from scanner(single pages or Multiple pages.)
ketan Ram Patil
19-Sep-17 4:18am
View
i want to store the each scan image in data base and retrieve all scan images. :)
ketan Ram Patil
19-Sep-17 4:11am
View
1.I am storing and Retrieving images in Byte Format.
2.I am storing images Max size 2 MB and store in Data Base in Byte Format legth is 102288.
3.i am retrieving images Min 20 and Max 60.
4. i am scan image with 96 DPI and store in Data Base in Byte Format. one by one scan image and retrieve all scan images once and add images to the stack panel children.(convert Data Base image Byte data to Bitmap Image.)
ketan Ram Patil
28-Aug-17 6:20am
View
Deleted
you have any application link... ?
for image processing in wpf vb
ketan Ram Patil
24-Aug-17 3:33am
View
<chartingToolkit:Chart Height="316" HorizontalAlignment="Right" Margin="0,38,405,0" Name="columnChart" Title="Column Chart" VerticalAlignment="Top" Width="330" Grid.Column="1">
<chartingToolkit:ColumnSeries Name="Scan"
Title="Scan"
DependentValuePath="Value"
IndependentValuePath="Key"
ItemsSource="{Binding}"
>
<chartingtoolkit:columnseries.datapointstyle>
<Setter Property="Background" Value="#00777F"/>
i tried this code. it changes the color. But also it gives color to second column the same color. and add only one series :(
i want to add two series. and two column with different color.
ketan Ram Patil
23-Aug-17 4:17am
View
i am read the information about how to set properties to handle document. but don't know how to assign the values. :(
https://msdn.microsoft.com/en-us/library/windows/desktop/ms630193(v=vs.85).aspx
ketan Ram Patil
21-Aug-17 12:47pm
View
in crop function Rcfrom returns values which is goes high. and i cant understand how the mathematics equation works... :(
ketan Ram Patil
21-Aug-17 9:30am
View
which documentation..? :(
ketan Ram Patil
21-Aug-17 9:29am
View
thanks
sorry,i know the problem is in crop function. but i cant understand the mathematics calculation.hows its works... and i don't find the article regarding this on web :(
ketan Ram Patil
21-Aug-17 9:28am
View
thanks
sorry,i know the problem is in crop function. but i cant understand the mathematics calculation.hows its works... and i don't find the article regarding this on web :(
ketan Ram Patil
21-Aug-17 0:39am
View
How to make responsive design in wpf vb ?
ketan Ram Patil
19-Aug-17 8:09am
View
How to make responsive design in wpf vb ?
ketan Ram Patil
19-Aug-17 2:21am
View
ok .. :) gr8...
i am hesitate to tell you.
the same again value doses not fall with in expected range problem happen with me... :(
with new rectangle resize project.
ketan Ram Patil
19-Aug-17 1:57am
View
i want ask you the question. How did you calculate the Go click. Crop maths.
which article i need to read for study.
ketan Ram Patil
18-Aug-17 12:17pm
View
thanks again the grip handle word help me to search my problem finally i got the solution. thank you again..
you are gr8... :)
ketan Ram Patil
18-Aug-17 11:58am
View
yes i want to resize the selection rectangle not to draw new one. ok.. i will search on grip handles thank you for your valuable replay.. :)
ketan Ram Patil
18-Aug-17 11:31am
View
have you seen the hp printers software. after scan the image they provide crop functionality i want to do the same crop functionality ... i want to provide crop rectangle on image. :(
ketan Ram Patil
18-Aug-17 11:21am
View
when user click on crop button then automatically crop rectangle display on image control. user can able to adjust rectangle height width. according to rectangle height and width image crop immediately on image control.at a run time.
ketan Ram Patil
18-Aug-17 8:58am
View
i am hesitate to ask the question again.... sorry for that.
actually i am displaying the rectangle on image on crop button click and i want to adjust the rectangle at a runtime by user. after click ok button image will be crope. i am able to draw the rectangle on image but cant resize the rectangle by user define.
i don't having words to say u to help me. when you are free then replay. sorry again.
ketan Ram Patil
18-Aug-17 8:57am
View
Deleted
i am hesitate to ask the question again.... sorry for that.
actually i am displaying the rectangle on image on crop button click and i want to adjust the rectangle at a runtime by user. after click ok button image will be crope. i am able to draw the rectangle on image but cant resize the rectangle by user define.
i don't having words to say u to help me. when you are free then replay. sorry again.
ketan Ram Patil
18-Aug-17 6:14am
View
Deleted
sorry i can't help him :(
i don't know how to set brightness to image.
ketan Ram Patil
18-Aug-17 6:01am
View
upload a new question. you definitely get a solution. don't lose hope.
stay Happy.... :)
ketan Ram Patil
18-Aug-17 0:36am
View
n again thank you.. :)
have a great day... :)
It works perfectly.
ketan Ram Patil
17-Aug-17 8:59am
View
thank you for your valuable replay.. :)
in above code the cropped object passes croppedbitmap to image2 source. i want to pass only bitmapimage.
when i am passsing croppedImage object to image2 source it displays blank image.:(
ketan Ram Patil
17-Aug-17 1:51am
View
:(
first i am converting the CroppedBitmap to bitmapsource and then bitmapsource to bitmap and then bitmap to bitmapimage it converts successfully.
but when i am converting bitmapimage to byte it gives error
Unable to cast object of type 'System.Windows.Media.Imaging.CroppedBitmap' to type 'System.Windows.Media.Imaging.BitmapImage'.
ketan Ram Patil
16-Aug-17 4:53am
View
You are a great... <3 <3
Thank you :) for your valuable reply..:)
n again thank you...... it works perfectly.
ketan Ram Patil
16-Aug-17 2:14am
View
sorry for the late reply . https://drive.google.com/file/d/0B0Hbd1jJiwLFN3VtTUY1Nl9rUFk/view
ketan Ram Patil
12-Aug-17 1:23am
View
thanks for the code. code works perfectly for 96 dpi But
for 300 dpi it gives "value does not fall with in expected range"
ketan Ram Patil
12-Aug-17 0:46am
View
Deleted
thanks for the code. code works perfectly But
for 300 dpi it gives "value does not fall with in expected range"
ketan Ram Patil
11-Aug-17 9:14am
View
https://stackoverflow.com/questions/39261580/image-cropping-in-c-values-does-not-fall-in-expected-range
same problem....
ketan Ram Patil
11-Aug-17 9:01am
View
it works for = dimensions 1920 pixels * 1280 pixels , 72 dpi ,bit depth 24 ,152 kb in JPEG format
cant work for this formate image = dimensions 2496 pixels * 3504 pixels , 300 dpi ,bit depth 24 ,152 kb in JPEG format
ketan Ram Patil
11-Aug-17 8:51am
View
Deleted
it works for = dimensions 1920 pixels * 1280 pixels , 72 dpi ,bit depth 24 ,152 kb in JPEG format
cant work for this formate image = dimensions 2496 pixels * 3504 pixels , 300 dpi ,bit depth 24 ,152 kb in JPEG format
ketan Ram Patil
11-Aug-17 8:41am
View
yes its applicable for small image not a large image.. it croppedbitmap gives error. "Value doesn't fall with in range"
when m passing the my code Rect1 value
Dim bs As BitmapSource = New CroppedBitmap(TryCast(image1.Source, BitmapSource), New Int32Rect(rcFrom.X, rcFrom.Y, rcFrom.Width, rcFrom.Height))
ketan Ram Patil
11-Aug-17 8:20am
View
i tried my best but i cant match this code in my project. please help
ketan Ram Patil
11-Aug-17 2:38am
View
i am fresher in wpf :(
where to send the canvas x,y,hight,widh values..?
ketan Ram Patil
11-Aug-17 2:21am
View
Dim rect1 As New Rect(Canvas.GetLeft(selectionRectangle), Canvas.GetTop(selectionRectangle), selectionRectangle.Width, selectionRectangle.Height)
Dim rcFrom As New System.Windows.Int32Rect()
rcFrom.X = CInt((rect1.X) * (image1.Source.Width) / (image1.Width))
rcFrom.Y = CInt((rect1.Y) * (image1.Source.Height) / (image1.Height))
rcFrom.Width = CInt((rect1.Width) * (image1.Source.Width) / (image1.Width))
rcFrom.Height = CInt((rect1.Height) * (image1.Source.Height) / (image1.Height))
'Dim BitmapImage As BitmapImage
'BitmapImage = image1.Source
'BitmapImage.StreamSource.Seek(0, System.IO.SeekOrigin.Begin)
Dim bs As BitmapSource = New CroppedBitmap(TryCast(image1.Source, BitmapSource), rcFrom)
image2.Source = bs
End If
i am also use this function but it works only for small crop.
for large crop it gives "value does not fall with in expected range " :(
Show More